CPKIFKeyUsage.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 CPKIFKeyUsage extends CPKIFX509Extension {
00012   private long swigCPtr;
00013 
00014   public CPKIFKeyUsage(long cPtr, boolean cMemoryOwn) {
00015     super(pkif_moduleJNI.CPKIFKeyUsage_SWIGUpcast(cPtr), cMemoryOwn);
00016     swigCPtr = cPtr;
00017   }
00018 
00019   public static long getCPtr(CPKIFKeyUsage 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_CPKIFKeyUsage(swigCPtr);
00032       }
00033       swigCPtr = 0;
00034     }
00035     super.delete();
00036   }
00037 
00038   public CPKIFKeyUsage() {
00039     this(pkif_moduleJNI.new_CPKIFKeyUsage__SWIG_0(), true);
00040   }
00041 
00042   public CPKIFKeyUsage(boolean criticality, CPKIFBufferPtr ext) {
00043     this(pkif_moduleJNI.new_CPKIFKeyUsage__SWIG_1(criticality, CPKIFBufferPtr.getCPtr(ext), ext), true);
00044   }
00045 
00046   public static void setExtOID(String value) {
00047     pkif_moduleJNI.CPKIFKeyUsage_extOID_set(value);
00048   }
00049 
00050   public static String getExtOID() {
00051     return pkif_moduleJNI.CPKIFKeyUsage_extOID_get();
00052   }
00053 
00054   public CPKIFOIDPtr oid() {
00055     return new CPKIFOIDPtr(pkif_moduleJNI.CPKIFKeyUsage_oid(swigCPtr, this), true);
00056   }
00057 
00058   public boolean DigitalSignature() {
00059     return pkif_moduleJNI.CPKIFKeyUsage_DigitalSignature(swigCPtr, this);
00060   }
00061 
00062   public boolean NonRepudiation() {
00063     return pkif_moduleJNI.CPKIFKeyUsage_NonRepudiation(swigCPtr, this);
00064   }
00065 
00066   public boolean KeyEncipherment() {
00067     return pkif_moduleJNI.CPKIFKeyUsage_KeyEncipherment(swigCPtr, this);
00068   }
00069 
00070   public boolean DataEncipherment() {
00071     return pkif_moduleJNI.CPKIFKeyUsage_DataEncipherment(swigCPtr, this);
00072   }
00073 
00074   public boolean KeyAgreement() {
00075     return pkif_moduleJNI.CPKIFKeyUsage_KeyAgreement(swigCPtr, this);
00076   }
00077 
00078   public boolean KeyCertSign() {
00079     return pkif_moduleJNI.CPKIFKeyUsage_KeyCertSign(swigCPtr, this);
00080   }
00081 
00082   public boolean CRLSign() {
00083     return pkif_moduleJNI.CPKIFKeyUsage_CRLSign(swigCPtr, this);
00084   }
00085 
00086   public boolean EncipherOnly() {
00087     return pkif_moduleJNI.CPKIFKeyUsage_EncipherOnly(swigCPtr, this);
00088   }
00089 
00090   public boolean DecipherOnly() {
00091     return pkif_moduleJNI.CPKIFKeyUsage_DecipherOnly(swigCPtr, this);
00092   }
00093 
00094   public void SetDigitalSignature() {
00095     pkif_moduleJNI.CPKIFKeyUsage_SetDigitalSignature(swigCPtr, this);
00096   }
00097 
00098   public void SetNonRepudiation() {
00099     pkif_moduleJNI.CPKIFKeyUsage_SetNonRepudiation(swigCPtr, this);
00100   }
00101 
00102   public void SetKeyEncipherment() {
00103     pkif_moduleJNI.CPKIFKeyUsage_SetKeyEncipherment(swigCPtr, this);
00104   }
00105 
00106   public void SetDataEncipherment() {
00107     pkif_moduleJNI.CPKIFKeyUsage_SetDataEncipherment(swigCPtr, this);
00108   }
00109 
00110   public void SetKeyAgreement() {
00111     pkif_moduleJNI.CPKIFKeyUsage_SetKeyAgreement(swigCPtr, this);
00112   }
00113 
00114   public void SetKeyCertSign() {
00115     pkif_moduleJNI.CPKIFKeyUsage_SetKeyCertSign(swigCPtr, this);
00116   }
00117 
00118   public void SetCRLSign() {
00119     pkif_moduleJNI.CPKIFKeyUsage_SetCRLSign(swigCPtr, this);
00120   }
00121 
00122   public void SetEncipherOnly() {
00123     pkif_moduleJNI.CPKIFKeyUsage_SetEncipherOnly(swigCPtr, this);
00124   }
00125 
00126   public void SetDecipherOnly() {
00127     pkif_moduleJNI.CPKIFKeyUsage_SetDecipherOnly(swigCPtr, this);
00128   }
00129 
00130   public SWIGTYPE_p_std__bitsetT_9_t GetKeyUsage() {
00131     return new SWIGTYPE_p_std__bitsetT_9_t(pkif_moduleJNI.CPKIFKeyUsage_GetKeyUsage(swigCPtr, this), true);
00132   }
00133 
00134   public CPKIFBufferPtr value() {
00135     return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFKeyUsage_value(swigCPtr, this), true);
00136   }
00137 
00138 }

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