CPKIFCRL.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class CPKIFCRL extends IPKIFHasExtensions {
00012 private long swigCPtr;
00013
00014 public CPKIFCRL(long cPtr, boolean cMemoryOwn) {
00015 super(pkif_moduleJNI.CPKIFCRL_SWIGUpcast(cPtr), cMemoryOwn);
00016 swigCPtr = cPtr;
00017 }
00018
00019 public static long getCPtr(CPKIFCRL 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_CPKIFCRL(swigCPtr);
00032 }
00033 swigCPtr = 0;
00034 }
00035 super.delete();
00036 }
00037
00038 public CPKIFCRL() {
00039 this(pkif_moduleJNI.new_CPKIFCRL(), true);
00040 }
00041
00042 public void Decode(byte[] cert, int certLen) {
00043 pkif_moduleJNI.CPKIFCRL_Decode(swigCPtr, this, cert, certLen);
00044 }
00045
00046 public CPKIFBufferPtr Encoded() {
00047 return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFCRL_Encoded(swigCPtr, this), true);
00048 }
00049
00050 public int Version() {
00051 return pkif_moduleJNI.CPKIFCRL_Version(swigCPtr, this);
00052 }
00053
00054 public CPKIFNamePtr Issuer() {
00055 return new CPKIFNamePtr(pkif_moduleJNI.CPKIFCRL_Issuer(swigCPtr, this), true);
00056 }
00057
00058 public CPKIFBufferPtr Signature() {
00059 return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFCRL_Signature(swigCPtr, this), true);
00060 }
00061
00062 public CPKIFTimePtr NextUpdate() {
00063 return new CPKIFTimePtr(pkif_moduleJNI.CPKIFCRL_NextUpdate(swigCPtr, this), true);
00064 }
00065
00066 public CPKIFTimePtr ThisUpdate() {
00067 return new CPKIFTimePtr(pkif_moduleJNI.CPKIFCRL_ThisUpdate(swigCPtr, this), true);
00068 }
00069
00070 public CPKIFAlgorithmIdentifierPtr SignatureAlgorithm() {
00071 return new CPKIFAlgorithmIdentifierPtr(pkif_moduleJNI.CPKIFCRL_SignatureAlgorithm(swigCPtr, this), true);
00072 }
00073
00074 public void PopulateEntryMap() {
00075 pkif_moduleJNI.CPKIFCRL_PopulateEntryMap(swigCPtr, this);
00076 }
00077
00078 public SWIGTYPE_p_std__vectorT_std__pairT_boost__shared_ptrT_CPKIFName_t_std__mapT_std__string_boost__shared_ptrT_CPKIFCRLEntry_t_t_t_t GetCRLEntryMap() {
00079 return new SWIGTYPE_p_std__vectorT_std__pairT_boost__shared_ptrT_CPKIFName_t_std__mapT_std__string_boost__shared_ptrT_CPKIFCRLEntry_t_t_t_t(pkif_moduleJNI.CPKIFCRL_GetCRLEntryMap(swigCPtr, this), true);
00080 }
00081
00082 public boolean CertOnThisCRL(CPKIFCertificatePtr cert, CPKIFCRLEntryPtr crlEntry) {
00083 return pkif_moduleJNI.CPKIFCRL_CertOnThisCRL(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCRLEntryPtr.getCPtr(crlEntry), crlEntry);
00084 }
00085
00086 public boolean AreThereAnyUnprocessedCriticalExtensions(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFX509Extension_t_t processedExts) {
00087 return pkif_moduleJNI.CPKIFCRL_AreThereAnyUnprocessedCriticalExtensions(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFX509Extension_t_t.getCPtr(processedExts));
00088 }
00089
00090 public void GetEncodedExtensions(CPKIFBufferPtr buf) {
00091 pkif_moduleJNI.CPKIFCRL_GetEncodedExtensions(swigCPtr, this, CPKIFBufferPtr.getCPtr(buf), buf);
00092 }
00093
00094 public void GetExtensionByOID(CPKIFOID oid, CPKIFX509ExtensionPtr ref) {
00095 pkif_moduleJNI.CPKIFCRL_GetExtensionByOID(swigCPtr, this, CPKIFOID.getCPtr(oid), oid, CPKIFX509ExtensionPtr.getCPtr(ref), ref);
00096 }
00097
00098 }