SimpleCertCache.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 SimpleCertCache extends IPKIFCertRepository {
00012   private long swigCPtr;
00013 
00014   public SimpleCertCache(long cPtr, boolean cMemoryOwn) {
00015     super(pkif_moduleJNI.SimpleCertCache_SWIGUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   public static long getCPtr(SimpleCertCache 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_SimpleCertCache(swigCPtr);
00032       }
00033       swigCPtr = 0;
00034     }
00035     super.delete();
00036   }
00037 
00038   public SimpleCertCache() {
00039     this(pkif_moduleJNI.new_SimpleCertCache(), true);
00040   }
00041 
00042   public void Initialize() {
00043     pkif_moduleJNI.SimpleCertCache_Initialize(swigCPtr, this);
00044   }
00045 
00046   public void GetCertificates(CPKIFNamePtr subDN, CPKIFCertificateList certList, PKIInfoSource source) {
00047     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_0(swigCPtr, this, CPKIFNamePtr.getCPtr(subDN), subDN, CPKIFCertificateList.getCPtr(certList), certList, source.swigValue());
00048   }
00049 
00050   public void GetCertificates(CPKIFNamePtr subDN, CPKIFCertificateList certList) {
00051     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_1(swigCPtr, this, CPKIFNamePtr.getCPtr(subDN), subDN, CPKIFCertificateList.getCPtr(certList), certList);
00052   }
00053 
00054   public void GetCertificates(CPKIFNamePtr subDN, CPKIFCertificateNodeList certNodeList, PKIInfoSource source) {
00055     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_2(swigCPtr, this, CPKIFNamePtr.getCPtr(subDN), subDN, CPKIFCertificateNodeList.getCPtr(certNodeList), certNodeList, source.swigValue());
00056   }
00057 
00058   public void GetCertificates(CPKIFNamePtr subDN, CPKIFCertificateNodeList certNodeList) {
00059     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_3(swigCPtr, this, CPKIFNamePtr.getCPtr(subDN), subDN, CPKIFCertificateNodeList.getCPtr(certNodeList), certNodeList);
00060   }
00061 
00062   public void GetCertificates(CPKIFCertificatePtr cert, CPKIFCertificateList certList, PKIInfoSource source, SWIGTYPE_p_PathBuildingDirection pbd) {
00063     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_4(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCertificateList.getCPtr(certList), certList, source.swigValue(), SWIGTYPE_p_PathBuildingDirection.getCPtr(pbd));
00064   }
00065 
00066   public void GetCertificates(CPKIFCertificatePtr cert, CPKIFCertificateList certList, PKIInfoSource source) {
00067     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_5(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCertificateList.getCPtr(certList), certList, source.swigValue());
00068   }
00069 
00070   public void GetCertificates(CPKIFCertificatePtr cert, CPKIFCertificateList certList) {
00071     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_6(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCertificateList.getCPtr(certList), certList);
00072   }
00073 
00074   public void GetCertificates(CPKIFCertificatePtr cert, CPKIFCertificateNodeList certNodeList, PKIInfoSource source, SWIGTYPE_p_PathBuildingDirection pbd) {
00075     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_7(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCertificateNodeList.getCPtr(certNodeList), certNodeList, source.swigValue(), SWIGTYPE_p_PathBuildingDirection.getCPtr(pbd));
00076   }
00077 
00078   public void GetCertificates(CPKIFCertificatePtr cert, CPKIFCertificateNodeList certNodeList, PKIInfoSource source) {
00079     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_8(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCertificateNodeList.getCPtr(certNodeList), certNodeList, source.swigValue());
00080   }
00081 
00082   public void GetCertificates(CPKIFCertificatePtr cert, CPKIFCertificateNodeList certNodeList) {
00083     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_9(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCertificateNodeList.getCPtr(certNodeList), certNodeList);
00084   }
00085 
00086   public void AddCertificate(CertType certType, CPKIFCertificatePtr cert) {
00087     pkif_moduleJNI.SimpleCertCache_AddCertificate__SWIG_0(swigCPtr, this, certType.swigValue(), CPKIFCertificatePtr.getCPtr(cert), cert);
00088   }
00089 
00090   public void AddCertificate(CertType certType, CPKIFCertificateNodeEntryPtr certNode) {
00091     pkif_moduleJNI.SimpleCertCache_AddCertificate__SWIG_1(swigCPtr, this, certType.swigValue(), CPKIFCertificateNodeEntryPtr.getCPtr(certNode), certNode);
00092   }
00093 
00094   public void GetCertificates(CPKIFCertificateList v) {
00095     pkif_moduleJNI.SimpleCertCache_GetCertificates__SWIG_10(swigCPtr, this, CPKIFCertificateList.getCPtr(v), v);
00096   }
00097 
00098   public void WriteCertsToDirectory(String path) {
00099     pkif_moduleJNI.SimpleCertCache_WriteCertsToDirectory(swigCPtr, this, path);
00100   }
00101 
00102   public void ReadCertsFromDirectory(String path) {
00103     pkif_moduleJNI.SimpleCertCache_ReadCertsFromDirectory(swigCPtr, this, path);
00104   }
00105 
00106   public PKIInfoSource GetSourceType() {
00107     return PKIInfoSource.swigToEnum(pkif_moduleJNI.SimpleCertCache_GetSourceType(swigCPtr, this));
00108   }
00109 
00110   public void FindCertificates(IPKIFSearchCriteria searchCriteria, CPKIFCertificateList certList, PKIInfoSource source) {
00111     pkif_moduleJNI.SimpleCertCache_FindCertificates__SWIG_0(swigCPtr, this, IPKIFSearchCriteria.getCPtr(searchCriteria), searchCriteria, CPKIFCertificateList.getCPtr(certList), certList, source.swigValue());
00112   }
00113 
00114   public void FindCertificates(IPKIFSearchCriteria searchCriteria, CPKIFCertificateList certList) {
00115     pkif_moduleJNI.SimpleCertCache_FindCertificates__SWIG_1(swigCPtr, this, IPKIFSearchCriteria.getCPtr(searchCriteria), searchCriteria, CPKIFCertificateList.getCPtr(certList), certList);
00116   }
00117 
00118   public void FindKeys(IPKIFSearchCriteria searchCriteria, IPKIFNameAndKeyList keyList, PKIInfoSource source) {
00119     pkif_moduleJNI.SimpleCertCache_FindKeys__SWIG_0(swigCPtr, this, IPKIFSearchCriteria.getCPtr(searchCriteria), searchCriteria, IPKIFNameAndKeyList.getCPtr(keyList), keyList, source.swigValue());
00120   }
00121 
00122   public void FindKeys(IPKIFSearchCriteria searchCriteria, IPKIFNameAndKeyList keyList) {
00123     pkif_moduleJNI.SimpleCertCache_FindKeys__SWIG_1(swigCPtr, this, IPKIFSearchCriteria.getCPtr(searchCriteria), searchCriteria, IPKIFNameAndKeyList.getCPtr(keyList), keyList);
00124   }
00125 
00126   public void Clear() {
00127     pkif_moduleJNI.SimpleCertCache_Clear(swigCPtr, this);
00128   }
00129 
00130   public int size() {
00131     return pkif_moduleJNI.SimpleCertCache_size(swigCPtr, this);
00132   }
00133 
00134 }

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