CPKIFOCSPChecker.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 CPKIFOCSPChecker extends IPKIFColleague {
00012   private long swigCPtr;
00013 
00014   public CPKIFOCSPChecker(long cPtr, boolean cMemoryOwn) {
00015     super(pkif_moduleJNI.CPKIFOCSPChecker_SWIGUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   public static long getCPtr(CPKIFOCSPChecker 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_CPKIFOCSPChecker(swigCPtr);
00032       }
00033       swigCPtr = 0;
00034     }
00035     super.delete();
00036   }
00037 
00038   public CPKIFOCSPChecker() {
00039     this(pkif_moduleJNI.new_CPKIFOCSPChecker__SWIG_0(), true);
00040   }
00041 
00042   public CPKIFOCSPChecker(CPKIFOCSPChecker copy) {
00043     this(pkif_moduleJNI.new_CPKIFOCSPChecker__SWIG_1(CPKIFOCSPChecker.getCPtr(copy), copy), true);
00044   }
00045 
00046   public void SetHost(String host) {
00047     pkif_moduleJNI.CPKIFOCSPChecker_SetHost(swigCPtr, this, host);
00048   }
00049 
00050   public void Set_Port(int port) {
00051     pkif_moduleJNI.CPKIFOCSPChecker_Set_Port(swigCPtr, this, port);
00052   }
00053 
00054   public void SetURL(String url) {
00055     pkif_moduleJNI.CPKIFOCSPChecker_SetURL(swigCPtr, this, url);
00056   }
00057 
00058   public CPKIFStringPtr GetHost() {
00059     return new CPKIFStringPtr(pkif_moduleJNI.CPKIFOCSPChecker_GetHost(swigCPtr, this), true);
00060   }
00061 
00062   public CPKIFStringPtr GetURL() {
00063     return new CPKIFStringPtr(pkif_moduleJNI.CPKIFOCSPChecker_GetURL(swigCPtr, this), true);
00064   }
00065 
00066   public int GetPort() {
00067     return pkif_moduleJNI.CPKIFOCSPChecker_GetPort(swigCPtr, this);
00068   }
00069 
00070   public void SetMultiCertRequest(boolean bDoMultiCertRequests) {
00071     pkif_moduleJNI.CPKIFOCSPChecker_SetMultiCertRequest(swigCPtr, this, bDoMultiCertRequests);
00072   }
00073 
00074   public boolean GetMultiCertRequest() {
00075     return pkif_moduleJNI.CPKIFOCSPChecker_GetMultiCertRequest(swigCPtr, this);
00076   }
00077 
00078   public void Initialize() {
00079     pkif_moduleJNI.CPKIFOCSPChecker_Initialize(swigCPtr, this);
00080   }
00081 
00082   public boolean CheckStatus(CPKIFCertificatePtr targetCert, CPKIFCertificatePtr issuersCert, SWIGTYPE_p_RevocationStatus status, CPKIFCertStatusPtr certStatus) {
00083     return pkif_moduleJNI.CPKIFOCSPChecker_CheckStatus(swigCPtr, this, CPKIFCertificatePtr.getCPtr(targetCert), targetCert, CPKIFCertificatePtr.getCPtr(issuersCert), issuersCert, SWIGTYPE_p_RevocationStatus.getCPtr(status), CPKIFCertStatusPtr.getCPtr(certStatus), certStatus);
00084   }
00085 
00086   public boolean CheckStatusPath(CPKIFCertificatePath path, SWIGTYPE_p_RevocationStatus status) {
00087     return pkif_moduleJNI.CPKIFOCSPChecker_CheckStatusPath(swigCPtr, this, CPKIFCertificatePath.getCPtr(path), path, SWIGTYPE_p_RevocationStatus.getCPtr(status));
00088   }
00089 
00090   public void SetPathSettings(CPKIFPathSettingsPtr settings) {
00091     pkif_moduleJNI.CPKIFOCSPChecker_SetPathSettings(swigCPtr, this, CPKIFPathSettingsPtr.getCPtr(settings), settings);
00092   }
00093 
00094   public void SetSigningCredential(CPKIFCredentialPtr cred) {
00095     pkif_moduleJNI.CPKIFOCSPChecker_SetSigningCredential(swigCPtr, this, CPKIFCredentialPtr.getCPtr(cred), cred);
00096   }
00097 
00098   public CPKIFCredentialPtr GetSigningCredential() {
00099     return new CPKIFCredentialPtr(pkif_moduleJNI.CPKIFOCSPChecker_GetSigningCredential(swigCPtr, this), true);
00100   }
00101 
00102   public void SetResponderPublicKey(CPKIFCertificatePtr cert, boolean bRequireThisCert) {
00103     pkif_moduleJNI.CPKIFOCSPChecker_SetResponderPublicKey__SWIG_0(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert, bRequireThisCert);
00104   }
00105 
00106   public void SetResponderPublicKey(CPKIFCertificatePtr cert) {
00107     pkif_moduleJNI.CPKIFOCSPChecker_SetResponderPublicKey__SWIG_1(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert);
00108   }
00109 
00110   public CPKIFCertificatePtr GetResponderPublicKey() {
00111     return new CPKIFCertificatePtr(pkif_moduleJNI.CPKIFOCSPChecker_GetResponderPublicKey(swigCPtr, this), true);
00112   }
00113 
00114   public boolean GetRequireSpecificCert() {
00115     return pkif_moduleJNI.CPKIFOCSPChecker_GetRequireSpecificCert(swigCPtr, this);
00116   }
00117 
00118   public void AddNamespace(CPKIFGeneralSubtreePtr name) {
00119     pkif_moduleJNI.CPKIFOCSPChecker_AddNamespace(swigCPtr, this, CPKIFGeneralSubtreePtr.getCPtr(name), name);
00120   }
00121 
00122   public CPKIFGeneralSubtreeList GetNamespaces() {
00123     return new CPKIFGeneralSubtreeList(pkif_moduleJNI.CPKIFOCSPChecker_GetNamespaces(swigCPtr, this), true);
00124   }
00125 
00126   public void AddIssuerNamespace(CPKIFGeneralSubtreePtr name) {
00127     pkif_moduleJNI.CPKIFOCSPChecker_AddIssuerNamespace(swigCPtr, this, CPKIFGeneralSubtreePtr.getCPtr(name), name);
00128   }
00129 
00130   public CPKIFGeneralSubtreeList GetIssuerNamespaces() {
00131     return new CPKIFGeneralSubtreeList(pkif_moduleJNI.CPKIFOCSPChecker_GetIssuerNamespaces(swigCPtr, this), true);
00132   }
00133 
00134   public void SetGenerateNonce(boolean bGenerateNonce) {
00135     pkif_moduleJNI.CPKIFOCSPChecker_SetGenerateNonce(swigCPtr, this, bGenerateNonce);
00136   }
00137 
00138   public boolean GetGenerateNonce() {
00139     return pkif_moduleJNI.CPKIFOCSPChecker_GetGenerateNonce(swigCPtr, this);
00140   }
00141 
00142   public void SetRequireNonceMatch(boolean bRequireNonceMatch) {
00143     pkif_moduleJNI.CPKIFOCSPChecker_SetRequireNonceMatch(swigCPtr, this, bRequireNonceMatch);
00144   }
00145 
00146   public boolean GetRequireNonceMatch() {
00147     return pkif_moduleJNI.CPKIFOCSPChecker_GetRequireNonceMatch(swigCPtr, this);
00148   }
00149 
00150   public boolean ProcessOfflineResponse(CPKIFCertificatePtr targetCert, CPKIFCertificatePtr targetIssuer, boolean responderIsTrusted, CPKIFBufferPtr ocspResponse, CPKIFCertStatusPtr targetCertStatus) {
00151     return pkif_moduleJNI.CPKIFOCSPChecker_ProcessOfflineResponse(swigCPtr, this, CPKIFCertificatePtr.getCPtr(targetCert), targetCert, CPKIFCertificatePtr.getCPtr(targetIssuer), targetIssuer, responderIsTrusted, CPKIFBufferPtr.getCPtr(ocspResponse), ocspResponse, CPKIFCertStatusPtr.getCPtr(targetCertStatus), targetCertStatus);
00152   }
00153 
00154   public void SetCacheValidatedResponders(boolean b) {
00155     pkif_moduleJNI.CPKIFOCSPChecker_SetCacheValidatedResponders(swigCPtr, this, b);
00156   }
00157 
00158   public boolean GetCacheValidatedResponders() {
00159     return pkif_moduleJNI.CPKIFOCSPChecker_GetCacheValidatedResponders(swigCPtr, this);
00160   }
00161 
00162 }

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