CPKIFX509CRLChecker.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 CPKIFX509CRLChecker extends IPKIFColleague {
00012   private long swigCPtr;
00013 
00014   public CPKIFX509CRLChecker(long cPtr, boolean cMemoryOwn) {
00015     super(pkif_moduleJNI.CPKIFX509CRLChecker_SWIGUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   public static long getCPtr(CPKIFX509CRLChecker 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_CPKIFX509CRLChecker(swigCPtr);
00032       }
00033       swigCPtr = 0;
00034     }
00035     super.delete();
00036   }
00037 
00038   public CPKIFX509CRLChecker() {
00039     this(pkif_moduleJNI.new_CPKIFX509CRLChecker(), true);
00040   }
00041 
00042   public void Initialize() {
00043     pkif_moduleJNI.CPKIFX509CRLChecker_Initialize(swigCPtr, this);
00044   }
00045 
00046   public boolean CheckStatus(CPKIFCertificatePtr targetCert, CPKIFCertificatePtr issuersCert, SWIGTYPE_p_RevocationStatus status, CPKIFCertStatusPtr certStatus) {
00047     return pkif_moduleJNI.CPKIFX509CRLChecker_CheckStatus(swigCPtr, this, CPKIFCertificatePtr.getCPtr(targetCert), targetCert, CPKIFCertificatePtr.getCPtr(issuersCert), issuersCert, SWIGTYPE_p_RevocationStatus.getCPtr(status), CPKIFCertStatusPtr.getCPtr(certStatus), certStatus);
00048   }
00049 
00050   public boolean CheckStatusPath(CPKIFCertificatePath path, SWIGTYPE_p_RevocationStatus status) {
00051     return pkif_moduleJNI.CPKIFX509CRLChecker_CheckStatusPath(swigCPtr, this, CPKIFCertificatePath.getCPtr(path), path, SWIGTYPE_p_RevocationStatus.getCPtr(status));
00052   }
00053 
00054   public void SetReasonCodesOfInterest(CPKIFReasonFlagsPtr reasons) {
00055     pkif_moduleJNI.CPKIFX509CRLChecker_SetReasonCodesOfInterest(swigCPtr, this, CPKIFReasonFlagsPtr.getCPtr(reasons), reasons);
00056   }
00057 
00058   public CPKIFReasonFlagsPtr GetReasonCodesOfInterest() {
00059     return new CPKIFReasonFlagsPtr(pkif_moduleJNI.CPKIFX509CRLChecker_GetReasonCodesOfInterest(swigCPtr, this), true);
00060   }
00061 
00062   public CPKIFPathSettingsPtr GetPathSettings() {
00063     return new CPKIFPathSettingsPtr(pkif_moduleJNI.CPKIFX509CRLChecker_GetPathSettings(swigCPtr, this), true);
00064   }
00065 
00066   public void SetPathSettings(CPKIFPathSettingsPtr settings) {
00067     pkif_moduleJNI.CPKIFX509CRLChecker_SetPathSettings(swigCPtr, this, CPKIFPathSettingsPtr.getCPtr(settings), settings);
00068   }
00069 
00070   public final static class CERTTYPES {
00071     public final static CERTTYPES CT_EE_DP = new CERTTYPES("CT_EE_DP");
00072     public final static CERTTYPES CT_EE = new CERTTYPES("CT_EE");
00073     public final static CERTTYPES CT_CA_DP = new CERTTYPES("CT_CA_DP");
00074     public final static CERTTYPES CT_CA = new CERTTYPES("CT_CA");
00075     public final static CERTTYPES CT_UNSUPPORTED = new CERTTYPES("CT_UNSUPPORTED");
00076 
00077     public final int swigValue() {
00078       return swigValue;
00079     }
00080 
00081     public String toString() {
00082       return swigName;
00083     }
00084 
00085     public static CERTTYPES swigToEnum(int swigValue) {
00086       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00087         return swigValues[swigValue];
00088       for (int i = 0; i < swigValues.length; i++)
00089         if (swigValues[i].swigValue == swigValue)
00090           return swigValues[i];
00091       throw new IllegalArgumentException("No enum " + CERTTYPES.class + " with value " + swigValue);
00092     }
00093 
00094     private CERTTYPES(String swigName) {
00095       this.swigName = swigName;
00096       this.swigValue = swigNext++;
00097     }
00098 
00099     private CERTTYPES(String swigName, int swigValue) {
00100       this.swigName = swigName;
00101       this.swigValue = swigValue;
00102       swigNext = swigValue+1;
00103     }
00104 
00105     private CERTTYPES(String swigName, CERTTYPES swigEnum) {
00106       this.swigName = swigName;
00107       this.swigValue = swigEnum.swigValue;
00108       swigNext = this.swigValue+1;
00109     }
00110 
00111     private static CERTTYPES[] swigValues = { CT_EE_DP, CT_EE, CT_CA_DP, CT_CA, CT_UNSUPPORTED };
00112     private static int swigNext = 0;
00113     private final int swigValue;
00114     private final String swigName;
00115   }
00116 
00117   public final static class CRLSCOPE {
00118     public final static CRLSCOPE CS_COMPLETE = new CRLSCOPE("CS_COMPLETE");
00119     public final static CRLSCOPE CS_DP = new CRLSCOPE("CS_DP");
00120     public final static CRLSCOPE CS_DELTA = new CRLSCOPE("CS_DELTA");
00121     public final static CRLSCOPE CS_DELTA_DP = new CRLSCOPE("CS_DELTA_DP");
00122     public final static CRLSCOPE CS_UNSUPPORTED = new CRLSCOPE("CS_UNSUPPORTED");
00123 
00124     public final int swigValue() {
00125       return swigValue;
00126     }
00127 
00128     public String toString() {
00129       return swigName;
00130     }
00131 
00132     public static CRLSCOPE swigToEnum(int swigValue) {
00133       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00134         return swigValues[swigValue];
00135       for (int i = 0; i < swigValues.length; i++)
00136         if (swigValues[i].swigValue == swigValue)
00137           return swigValues[i];
00138       throw new IllegalArgumentException("No enum " + CRLSCOPE.class + " with value " + swigValue);
00139     }
00140 
00141     private CRLSCOPE(String swigName) {
00142       this.swigName = swigName;
00143       this.swigValue = swigNext++;
00144     }
00145 
00146     private CRLSCOPE(String swigName, int swigValue) {
00147       this.swigName = swigName;
00148       this.swigValue = swigValue;
00149       swigNext = swigValue+1;
00150     }
00151 
00152     private CRLSCOPE(String swigName, CRLSCOPE swigEnum) {
00153       this.swigName = swigName;
00154       this.swigValue = swigEnum.swigValue;
00155       swigNext = this.swigValue+1;
00156     }
00157 
00158     private static CRLSCOPE[] swigValues = { CS_COMPLETE, CS_DP, CS_DELTA, CS_DELTA_DP, CS_UNSUPPORTED };
00159     private static int swigNext = 0;
00160     private final int swigValue;
00161     private final String swigName;
00162   }
00163 
00164   public final static class CRLCOVERAGE {
00165     public final static CRLCOVERAGE CC_ALL = new CRLCOVERAGE("CC_ALL");
00166     public final static CRLCOVERAGE CC_EEONLY = new CRLCOVERAGE("CC_EEONLY");
00167     public final static CRLCOVERAGE CC_CAONLY = new CRLCOVERAGE("CC_CAONLY");
00168     public final static CRLCOVERAGE CC_UNSUPPORTED = new CRLCOVERAGE("CC_UNSUPPORTED");
00169 
00170     public final int swigValue() {
00171       return swigValue;
00172     }
00173 
00174     public String toString() {
00175       return swigName;
00176     }
00177 
00178     public static CRLCOVERAGE swigToEnum(int swigValue) {
00179       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00180         return swigValues[swigValue];
00181       for (int i = 0; i < swigValues.length; i++)
00182         if (swigValues[i].swigValue == swigValue)
00183           return swigValues[i];
00184       throw new IllegalArgumentException("No enum " + CRLCOVERAGE.class + " with value " + swigValue);
00185     }
00186 
00187     private CRLCOVERAGE(String swigName) {
00188       this.swigName = swigName;
00189       this.swigValue = swigNext++;
00190     }
00191 
00192     private CRLCOVERAGE(String swigName, int swigValue) {
00193       this.swigName = swigName;
00194       this.swigValue = swigValue;
00195       swigNext = swigValue+1;
00196     }
00197 
00198     private CRLCOVERAGE(String swigName, CRLCOVERAGE swigEnum) {
00199       this.swigName = swigName;
00200       this.swigValue = swigEnum.swigValue;
00201       swigNext = this.swigValue+1;
00202     }
00203 
00204     private static CRLCOVERAGE[] swigValues = { CC_ALL, CC_EEONLY, CC_CAONLY, CC_UNSUPPORTED };
00205     private static int swigNext = 0;
00206     private final int swigValue;
00207     private final String swigName;
00208   }
00209 
00210   public final static class CRLAUTHORITY {
00211     public final static CRLAUTHORITY CA_DIRECT = new CRLAUTHORITY("CA_DIRECT");
00212     public final static CRLAUTHORITY CA_INDIRECT = new CRLAUTHORITY("CA_INDIRECT");
00213     public final static CRLAUTHORITY CA_UNSUPPORTED = new CRLAUTHORITY("CA_UNSUPPORTED");
00214 
00215     public final int swigValue() {
00216       return swigValue;
00217     }
00218 
00219     public String toString() {
00220       return swigName;
00221     }
00222 
00223     public static CRLAUTHORITY swigToEnum(int swigValue) {
00224       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00225         return swigValues[swigValue];
00226       for (int i = 0; i < swigValues.length; i++)
00227         if (swigValues[i].swigValue == swigValue)
00228           return swigValues[i];
00229       throw new IllegalArgumentException("No enum " + CRLAUTHORITY.class + " with value " + swigValue);
00230     }
00231 
00232     private CRLAUTHORITY(String swigName) {
00233       this.swigName = swigName;
00234       this.swigValue = swigNext++;
00235     }
00236 
00237     private CRLAUTHORITY(String swigName, int swigValue) {
00238       this.swigName = swigName;
00239       this.swigValue = swigValue;
00240       swigNext = swigValue+1;
00241     }
00242 
00243     private CRLAUTHORITY(String swigName, CRLAUTHORITY swigEnum) {
00244       this.swigName = swigName;
00245       this.swigValue = swigEnum.swigValue;
00246       swigNext = this.swigValue+1;
00247     }
00248 
00249     private static CRLAUTHORITY[] swigValues = { CA_DIRECT, CA_INDIRECT, CA_UNSUPPORTED };
00250     private static int swigNext = 0;
00251     private final int swigValue;
00252     private final String swigName;
00253   }
00254 
00255   public final static class CRLREASONS {
00256     public final static CRLREASONS CR_ALLREASONS = new CRLREASONS("CR_ALLREASONS");
00257     public final static CRLREASONS CR_SOMEREASONS = new CRLREASONS("CR_SOMEREASONS");
00258     public final static CRLREASONS CR_UNSUPPORTED = new CRLREASONS("CR_UNSUPPORTED");
00259 
00260     public final int swigValue() {
00261       return swigValue;
00262     }
00263 
00264     public String toString() {
00265       return swigName;
00266     }
00267 
00268     public static CRLREASONS swigToEnum(int swigValue) {
00269       if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00270         return swigValues[swigValue];
00271       for (int i = 0; i < swigValues.length; i++)
00272         if (swigValues[i].swigValue == swigValue)
00273           return swigValues[i];
00274       throw new IllegalArgumentException("No enum " + CRLREASONS.class + " with value " + swigValue);
00275     }
00276 
00277     private CRLREASONS(String swigName) {
00278       this.swigName = swigName;
00279       this.swigValue = swigNext++;
00280     }
00281 
00282     private CRLREASONS(String swigName, int swigValue) {
00283       this.swigName = swigName;
00284       this.swigValue = swigValue;
00285       swigNext = swigValue+1;
00286     }
00287 
00288     private CRLREASONS(String swigName, CRLREASONS swigEnum) {
00289       this.swigName = swigName;
00290       this.swigValue = swigEnum.swigValue;
00291       swigNext = this.swigValue+1;
00292     }
00293 
00294     private static CRLREASONS[] swigValues = { CR_ALLREASONS, CR_SOMEREASONS, CR_UNSUPPORTED };
00295     private static int swigNext = 0;
00296     private final int swigValue;
00297     private final String swigName;
00298   }
00299 
00300 }

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