00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class CPKIFOCSPCheckerPtr {
00012 private long swigCPtr;
00013 protected boolean swigCMemOwn;
00014
00015 public CPKIFOCSPCheckerPtr(long cPtr, boolean cMemoryOwn) {
00016 swigCMemOwn = cMemoryOwn;
00017 swigCPtr = cPtr;
00018 }
00019
00020 public static long getCPtr(CPKIFOCSPCheckerPtr obj) {
00021 return (obj == null) ? 0 : obj.swigCPtr;
00022 }
00023
00024 protected void finalize() {
00025 delete();
00026 }
00027
00028 public synchronized void delete() {
00029 if (swigCPtr != 0) {
00030 if (swigCMemOwn) {
00031 swigCMemOwn = false;
00032 pkif_moduleJNI.delete_CPKIFOCSPCheckerPtr(swigCPtr);
00033 }
00034 swigCPtr = 0;
00035 }
00036 }
00037
00038 public void reset() {
00039 pkif_moduleJNI.CPKIFOCSPCheckerPtr_reset(swigCPtr, this);
00040 }
00041
00042 public CPKIFOCSPChecker __deref__() {
00043 long cPtr = pkif_moduleJNI.CPKIFOCSPCheckerPtr___deref__(swigCPtr, this);
00044 return (cPtr == 0) ? null : new CPKIFOCSPChecker(cPtr, false);
00045 }
00046
00047 public CPKIFOCSPChecker get() {
00048 long cPtr = pkif_moduleJNI.CPKIFOCSPCheckerPtr_get(swigCPtr, this);
00049 return (cPtr == 0) ? null : new CPKIFOCSPChecker(cPtr, false);
00050 }
00051
00052 public boolean unique() {
00053 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_unique(swigCPtr, this);
00054 }
00055
00056 public int use_count() {
00057 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_use_count(swigCPtr, this);
00058 }
00059
00060 public void swap(CPKIFOCSPCheckerPtr other) {
00061 pkif_moduleJNI.CPKIFOCSPCheckerPtr_swap(swigCPtr, this, CPKIFOCSPCheckerPtr.getCPtr(other), other);
00062 }
00063
00064 public SWIGTYPE_p_void _internal_get_deleter(SWIGTYPE_p_boost__detail__sp_typeinfo ti) {
00065 long cPtr = pkif_moduleJNI.CPKIFOCSPCheckerPtr__internal_get_deleter(swigCPtr, this, SWIGTYPE_p_boost__detail__sp_typeinfo.getCPtr(ti));
00066 return (cPtr == 0) ? null : new SWIGTYPE_p_void(cPtr, false);
00067 }
00068
00069 public boolean _internal_equiv(CPKIFOCSPCheckerPtr r) {
00070 return pkif_moduleJNI.CPKIFOCSPCheckerPtr__internal_equiv(swigCPtr, this, CPKIFOCSPCheckerPtr.getCPtr(r), r);
00071 }
00072
00073 public void SetHost(String host) {
00074 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetHost(swigCPtr, this, host);
00075 }
00076
00077 public void Set_Port(int port) {
00078 pkif_moduleJNI.CPKIFOCSPCheckerPtr_Set_Port(swigCPtr, this, port);
00079 }
00080
00081 public void SetURL(String url) {
00082 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetURL(swigCPtr, this, url);
00083 }
00084
00085 public CPKIFStringPtr GetHost() {
00086 return new CPKIFStringPtr(pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetHost(swigCPtr, this), true);
00087 }
00088
00089 public CPKIFStringPtr GetURL() {
00090 return new CPKIFStringPtr(pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetURL(swigCPtr, this), true);
00091 }
00092
00093 public int GetPort() {
00094 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetPort(swigCPtr, this);
00095 }
00096
00097 public void SetMultiCertRequest(boolean bDoMultiCertRequests) {
00098 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetMultiCertRequest(swigCPtr, this, bDoMultiCertRequests);
00099 }
00100
00101 public boolean GetMultiCertRequest() {
00102 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetMultiCertRequest(swigCPtr, this);
00103 }
00104
00105 public void Initialize() {
00106 pkif_moduleJNI.CPKIFOCSPCheckerPtr_Initialize(swigCPtr, this);
00107 }
00108
00109 public boolean CheckStatus(CPKIFCertificatePtr targetCert, CPKIFCertificatePtr issuersCert, SWIGTYPE_p_RevocationStatus status, CPKIFCertStatusPtr certStatus) {
00110 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_CheckStatus(swigCPtr, this, CPKIFCertificatePtr.getCPtr(targetCert), targetCert, CPKIFCertificatePtr.getCPtr(issuersCert), issuersCert, SWIGTYPE_p_RevocationStatus.getCPtr(status), CPKIFCertStatusPtr.getCPtr(certStatus), certStatus);
00111 }
00112
00113 public boolean CheckStatusPath(CPKIFCertificatePath path, SWIGTYPE_p_RevocationStatus status) {
00114 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_CheckStatusPath(swigCPtr, this, CPKIFCertificatePath.getCPtr(path), path, SWIGTYPE_p_RevocationStatus.getCPtr(status));
00115 }
00116
00117 public void SetPathSettings(CPKIFPathSettingsPtr settings) {
00118 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetPathSettings(swigCPtr, this, CPKIFPathSettingsPtr.getCPtr(settings), settings);
00119 }
00120
00121 public void SetSigningCredential(CPKIFCredentialPtr cred) {
00122 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetSigningCredential(swigCPtr, this, CPKIFCredentialPtr.getCPtr(cred), cred);
00123 }
00124
00125 public CPKIFCredentialPtr GetSigningCredential() {
00126 return new CPKIFCredentialPtr(pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetSigningCredential(swigCPtr, this), true);
00127 }
00128
00129 public void SetResponderPublicKey(CPKIFCertificatePtr cert, boolean bRequireThisCert) {
00130 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetResponderPublicKey__SWIG_0(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, bRequireThisCert);
00131 }
00132
00133 public void SetResponderPublicKey(CPKIFCertificatePtr cert) {
00134 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetResponderPublicKey__SWIG_1(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert);
00135 }
00136
00137 public CPKIFCertificatePtr GetResponderPublicKey() {
00138 return new CPKIFCertificatePtr(pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetResponderPublicKey(swigCPtr, this), true);
00139 }
00140
00141 public boolean GetRequireSpecificCert() {
00142 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetRequireSpecificCert(swigCPtr, this);
00143 }
00144
00145 public void AddNamespace(CPKIFGeneralSubtreePtr name) {
00146 pkif_moduleJNI.CPKIFOCSPCheckerPtr_AddNamespace(swigCPtr, this, CPKIFGeneralSubtreePtr.getCPtr(name), name);
00147 }
00148
00149 public CPKIFGeneralSubtreeList GetNamespaces() {
00150 return new CPKIFGeneralSubtreeList(pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetNamespaces(swigCPtr, this), true);
00151 }
00152
00153 public void AddIssuerNamespace(CPKIFGeneralSubtreePtr name) {
00154 pkif_moduleJNI.CPKIFOCSPCheckerPtr_AddIssuerNamespace(swigCPtr, this, CPKIFGeneralSubtreePtr.getCPtr(name), name);
00155 }
00156
00157 public CPKIFGeneralSubtreeList GetIssuerNamespaces() {
00158 return new CPKIFGeneralSubtreeList(pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetIssuerNamespaces(swigCPtr, this), true);
00159 }
00160
00161 public void SetGenerateNonce(boolean bGenerateNonce) {
00162 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetGenerateNonce(swigCPtr, this, bGenerateNonce);
00163 }
00164
00165 public boolean GetGenerateNonce() {
00166 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetGenerateNonce(swigCPtr, this);
00167 }
00168
00169 public void SetRequireNonceMatch(boolean bRequireNonceMatch) {
00170 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetRequireNonceMatch(swigCPtr, this, bRequireNonceMatch);
00171 }
00172
00173 public boolean GetRequireNonceMatch() {
00174 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetRequireNonceMatch(swigCPtr, this);
00175 }
00176
00177 public boolean ProcessOfflineResponse(CPKIFCertificatePtr targetCert, CPKIFCertificatePtr targetIssuer, boolean responderIsTrusted, CPKIFBufferPtr ocspResponse, CPKIFCertStatusPtr targetCertStatus) {
00178 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_ProcessOfflineResponse(swigCPtr, this, CPKIFCertificatePtr.getCPtr(targetCert), targetCert, CPKIFCertificatePtr.getCPtr(targetIssuer), targetIssuer, responderIsTrusted, CPKIFBufferPtr.getCPtr(ocspResponse), ocspResponse, CPKIFCertStatusPtr.getCPtr(targetCertStatus), targetCertStatus);
00179 }
00180
00181 public void SetCacheValidatedResponders(boolean b) {
00182 pkif_moduleJNI.CPKIFOCSPCheckerPtr_SetCacheValidatedResponders(swigCPtr, this, b);
00183 }
00184
00185 public boolean GetCacheValidatedResponders() {
00186 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetCacheValidatedResponders(swigCPtr, this);
00187 }
00188
00189 public void AddParent(IPKIFColleague parent) {
00190 pkif_moduleJNI.CPKIFOCSPCheckerPtr_AddParent(swigCPtr, this, IPKIFColleague.getCPtr(parent), parent);
00191 }
00192
00193 public void RemoveParent(IPKIFColleague parent) {
00194 pkif_moduleJNI.CPKIFOCSPCheckerPtr_RemoveParent(swigCPtr, this, IPKIFColleague.getCPtr(parent), parent);
00195 }
00196
00197 public boolean IsParent(IPKIFColleague arg0) {
00198 return pkif_moduleJNI.CPKIFOCSPCheckerPtr_IsParent(swigCPtr, this, IPKIFColleague.getCPtr(arg0), arg0);
00199 }
00200
00201 public void InitializeMediator(SWIGTYPE_p_std__vectorT_CPKIFException_p_t errorInfo) {
00202 pkif_moduleJNI.CPKIFOCSPCheckerPtr_InitializeMediator__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__vectorT_CPKIFException_p_t.getCPtr(errorInfo));
00203 }
00204
00205 public void InitializeMediator() {
00206 pkif_moduleJNI.CPKIFOCSPCheckerPtr_InitializeMediator__SWIG_1(swigCPtr, this);
00207 }
00208
00209 public void Terminate() {
00210 pkif_moduleJNI.CPKIFOCSPCheckerPtr_Terminate(swigCPtr, this);
00211 }
00212
00213 public void AddMediator(IPKIFColleaguePtr m) {
00214 pkif_moduleJNI.CPKIFOCSPCheckerPtr_AddMediator(swigCPtr, this, IPKIFColleaguePtr.getCPtr(m), m);
00215 }
00216
00217 public void RemoveMediator(IPKIFColleague arg0) {
00218 pkif_moduleJNI.CPKIFOCSPCheckerPtr_RemoveMediator(swigCPtr, this, IPKIFColleague.getCPtr(arg0), arg0);
00219 }
00220
00221 public void RemoveMediatorAssociations() {
00222 pkif_moduleJNI.CPKIFOCSPCheckerPtr_RemoveMediatorAssociations(swigCPtr, this);
00223 }
00224
00225 public void GetMediators(IPKIFColleagueList v) {
00226 pkif_moduleJNI.CPKIFOCSPCheckerPtr_GetMediators(swigCPtr, this, IPKIFColleagueList.getCPtr(v), v);
00227 }
00228
00229 }