00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class CPKIFNSSRepository extends IPKIFPKIRepository {
00012 private long swigCPtr;
00013
00014 public CPKIFNSSRepository(long cPtr, boolean cMemoryOwn) {
00015 super(pkif_moduleJNI.CPKIFNSSRepository_SWIGUpcast(cPtr), cMemoryOwn);
00016 swigCPtr = cPtr;
00017 }
00018
00019 public static long getCPtr(CPKIFNSSRepository 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_CPKIFNSSRepository(swigCPtr);
00032 }
00033 swigCPtr = 0;
00034 }
00035 super.delete();
00036 }
00037
00038 public CPKIFNSSRepository(String dbdir) {
00039 this(pkif_moduleJNI.new_CPKIFNSSRepository__SWIG_0(dbdir), true);
00040 }
00041
00042 public CPKIFNSSRepository() {
00043 this(pkif_moduleJNI.new_CPKIFNSSRepository__SWIG_1(), true);
00044 }
00045
00046 public void GetCRLs(CPKIFCertificatePtr cert, CPKIFCRLList crlList, PKIInfoSource source) {
00047 pkif_moduleJNI.CPKIFNSSRepository_GetCRLs__SWIG_0(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCRLList.getCPtr(crlList), crlList, source.swigValue());
00048 }
00049
00050 public void GetCRLs(CPKIFCertificatePtr cert, CPKIFCRLList crlList) {
00051 pkif_moduleJNI.CPKIFNSSRepository_GetCRLs__SWIG_1(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, CPKIFCRLList.getCPtr(crlList), crlList);
00052 }
00053
00054 public void GetCertificates(CPKIFNamePtr subDN, CPKIFCertificateList certList, PKIInfoSource source) {
00055 pkif_moduleJNI.CPKIFNSSRepository_GetCertificates__SWIG_0(swigCPtr, this, CPKIFNamePtr.getCPtr(subDN), subDN, CPKIFCertificateList.getCPtr(certList), certList, source.swigValue());
00056 }
00057
00058 public void GetCertificates(CPKIFNamePtr subDN, CPKIFCertificateList certList) {
00059 pkif_moduleJNI.CPKIFNSSRepository_GetCertificates__SWIG_1(swigCPtr, this, CPKIFNamePtr.getCPtr(subDN), subDN, CPKIFCertificateList.getCPtr(certList), certList);
00060 }
00061
00062 public void Initialize() {
00063 pkif_moduleJNI.CPKIFNSSRepository_Initialize(swigCPtr, this);
00064 }
00065
00066 public PKIInfoSource GetSourceType() {
00067 return PKIInfoSource.swigToEnum(pkif_moduleJNI.CPKIFNSSRepository_GetSourceType(swigCPtr, this));
00068 }
00069
00070 public void FindCertificates(IPKIFSearchCriteria searchCriteria, CPKIFCertificateList certList, PKIInfoSource source) {
00071 pkif_moduleJNI.CPKIFNSSRepository_FindCertificates__SWIG_0(swigCPtr, this, IPKIFSearchCriteria.getCPtr(searchCriteria), searchCriteria, CPKIFCertificateList.getCPtr(certList), certList, source.swigValue());
00072 }
00073
00074 public void FindCertificates(IPKIFSearchCriteria searchCriteria, CPKIFCertificateList certList) {
00075 pkif_moduleJNI.CPKIFNSSRepository_FindCertificates__SWIG_1(swigCPtr, this, IPKIFSearchCriteria.getCPtr(searchCriteria), searchCriteria, CPKIFCertificateList.getCPtr(certList), certList);
00076 }
00077
00078 }