CPKIFCertificate.java

Go to the documentation of this file.
00001 /* ----------------------------------------------------------------------------
00002  * This file was automatically generated by SWIG (http://www.swig.org).
00003  * Version 2.0.1
00004  *
00005  * Do not make changes to this file unless you know what you are doing--modify
00006  * the SWIG interface file instead.
00007  * ----------------------------------------------------------------------------- */
00008 
00009 package com.orionsec.jpkif;
00010 
00011 public class CPKIFCertificate extends IPKIFHasExtensions {
00012   private long swigCPtr;
00013 
00014   public CPKIFCertificate(long cPtr, boolean cMemoryOwn) {
00015     super(pkif_moduleJNI.CPKIFCertificate_SWIGUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   public static long getCPtr(CPKIFCertificate obj) {
00020     return (obj == null) ? 0 : obj.swigCPtr;
00021   }
00022 
00023   protected void finalize() {
00024     delete();
00025   }
00026 
00027   public synchronized void delete() {
00028     if (swigCPtr != 0) {
00029       if (swigCMemOwn) {
00030         swigCMemOwn = false;
00031         pkif_moduleJNI.delete_CPKIFCertificate(swigCPtr);
00032       }
00033       swigCPtr = 0;
00034     }
00035     super.delete();
00036   }
00037 
00038   public CPKIFCertificate() {
00039     this(pkif_moduleJNI.new_CPKIFCertificate(), true);
00040   }
00041 
00042   public void Decode(byte[] cert, int certLen) {
00043     pkif_moduleJNI.CPKIFCertificate_Decode(swigCPtr, this, cert, certLen);
00044   }
00045 
00046   public CPKIFBufferPtr Encoded() {
00047     return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFCertificate_Encoded(swigCPtr, this), true);
00048   }
00049 
00050   public int Version() {
00051     return pkif_moduleJNI.CPKIFCertificate_Version(swigCPtr, this);
00052   }
00053 
00054   public String SerialNumber() {
00055     return pkif_moduleJNI.CPKIFCertificate_SerialNumber(swigCPtr, this);
00056   }
00057 
00058   public CPKIFAlgorithmIdentifierPtr TBSSignatureAlgorithm() {
00059     return new CPKIFAlgorithmIdentifierPtr(pkif_moduleJNI.CPKIFCertificate_TBSSignatureAlgorithm(swigCPtr, this), true);
00060   }
00061 
00062   public CPKIFNamePtr Issuer() {
00063     return new CPKIFNamePtr(pkif_moduleJNI.CPKIFCertificate_Issuer(swigCPtr, this), true);
00064   }
00065 
00066   public CPKIFValidityPtr Validity() {
00067     return new CPKIFValidityPtr(pkif_moduleJNI.CPKIFCertificate_Validity(swigCPtr, this), true);
00068   }
00069 
00070   public CPKIFNamePtr Subject() {
00071     return new CPKIFNamePtr(pkif_moduleJNI.CPKIFCertificate_Subject(swigCPtr, this), true);
00072   }
00073 
00074   public CPKIFSubjectPublicKeyInfoPtr SubjectPublicKeyInfo() {
00075     return new CPKIFSubjectPublicKeyInfoPtr(pkif_moduleJNI.CPKIFCertificate_SubjectPublicKeyInfo(swigCPtr, this), true);
00076   }
00077 
00078   public CPKIFAlgorithmIdentifierPtr SignatureAlgorithm() {
00079     return new CPKIFAlgorithmIdentifierPtr(pkif_moduleJNI.CPKIFCertificate_SignatureAlgorithm(swigCPtr, this), true);
00080   }
00081 
00082   public CPKIFBufferPtr Signature() {
00083     return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFCertificate_Signature(swigCPtr, this), true);
00084   }
00085 
00086   public boolean IsSelfIssued() {
00087     return pkif_moduleJNI.CPKIFCertificate_IsSelfIssued(swigCPtr, this);
00088   }
00089 
00090   public boolean IsSelfSigned() {
00091     return pkif_moduleJNI.CPKIFCertificate_IsSelfSigned(swigCPtr, this);
00092   }
00093 
00094   public void GetExtensionByOID(CPKIFOID oid, CPKIFX509ExtensionPtr ref) {
00095     pkif_moduleJNI.CPKIFCertificate_GetExtensionByOID(swigCPtr, this, CPKIFOID.getCPtr(oid), oid, CPKIFX509ExtensionPtr.getCPtr(ref), ref);
00096   }
00097 
00098   public void GetEncodedExtensions(CPKIFBufferPtr buf) {
00099     pkif_moduleJNI.CPKIFCertificate_GetEncodedExtensions(swigCPtr, this, CPKIFBufferPtr.getCPtr(buf), buf);
00100   }
00101 
00102   public boolean AreThereAnyUnprocessedCriticalExtensions(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFX509Extension_t_t processedExts) {
00103     return pkif_moduleJNI.CPKIFCertificate_AreThereAnyUnprocessedCriticalExtensions(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFX509Extension_t_t.getCPtr(processedExts));
00104   }
00105 
00106   public CPKIFNamePtr GetSubjectName() {
00107     return new CPKIFNamePtr(pkif_moduleJNI.CPKIFCertificate_GetSubjectName(swigCPtr, this), true);
00108   }
00109 
00110   public CPKIFNamePtr GetIssuerName() {
00111     return new CPKIFNamePtr(pkif_moduleJNI.CPKIFCertificate_GetIssuerName(swigCPtr, this), true);
00112   }
00113 
00114   public CPKIFBufferPtr GetKey() {
00115     return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFCertificate_GetKey(swigCPtr, this), true);
00116   }
00117 
00118   public CPKIFSubjectPublicKeyInfoPtr GetSubjectPublicKeyInfo() {
00119     return new CPKIFSubjectPublicKeyInfoPtr(pkif_moduleJNI.CPKIFCertificate_GetSubjectPublicKeyInfo(swigCPtr, this), true);
00120   }
00121 
00122 }

Generated on Mon Nov 15 11:15:47 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6