CPKIFCryptoPPRawPtr.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 CPKIFCryptoPPRawPtr {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   public CPKIFCryptoPPRawPtr(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   public static long getCPtr(CPKIFCryptoPPRawPtr 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_CPKIFCryptoPPRawPtr(swigCPtr);
00033       }
00034       swigCPtr = 0;
00035     }
00036   }
00037 
00038   public void reset() {
00039     pkif_moduleJNI.CPKIFCryptoPPRawPtr_reset(swigCPtr, this);
00040   }
00041 
00042   public CPKIFCryptoPPRaw __deref__() {
00043     long cPtr = pkif_moduleJNI.CPKIFCryptoPPRawPtr___deref__(swigCPtr, this);
00044     return (cPtr == 0) ? null : new CPKIFCryptoPPRaw(cPtr, false);
00045   }
00046 
00047   public CPKIFCryptoPPRaw get() {
00048     long cPtr = pkif_moduleJNI.CPKIFCryptoPPRawPtr_get(swigCPtr, this);
00049     return (cPtr == 0) ? null : new CPKIFCryptoPPRaw(cPtr, false);
00050   }
00051 
00052   public boolean unique() {
00053     return pkif_moduleJNI.CPKIFCryptoPPRawPtr_unique(swigCPtr, this);
00054   }
00055 
00056   public int use_count() {
00057     return pkif_moduleJNI.CPKIFCryptoPPRawPtr_use_count(swigCPtr, this);
00058   }
00059 
00060   public void swap(CPKIFCryptoPPRawPtr other) {
00061     pkif_moduleJNI.CPKIFCryptoPPRawPtr_swap(swigCPtr, this, CPKIFCryptoPPRawPtr.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.CPKIFCryptoPPRawPtr__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(CPKIFCryptoPPRawPtr r) {
00070     return pkif_moduleJNI.CPKIFCryptoPPRawPtr__internal_equiv(swigCPtr, this, CPKIFCryptoPPRawPtr.getCPtr(r), r);
00071   }
00072 
00073   public void Initialize() {
00074     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Initialize(swigCPtr, this);
00075   }
00076 
00077   public void GenRandom(byte[] buf, int len) {
00078     pkif_moduleJNI.CPKIFCryptoPPRawPtr_GenRandom(swigCPtr, this, buf, len);
00079   }
00080 
00081   public IPKIFHashContext HashInit(HASH_ALG alg) {
00082     long cPtr = pkif_moduleJNI.CPKIFCryptoPPRawPtr_HashInit(swigCPtr, this, alg.swigValue());
00083     return (cPtr == 0) ? null : new IPKIFHashContext(cPtr, false);
00084   }
00085 
00086   public void HashUpdate(IPKIFHashContext hash, byte[] pData, int nDataLen) {
00087     pkif_moduleJNI.CPKIFCryptoPPRawPtr_HashUpdate(swigCPtr, this, IPKIFHashContext.getCPtr(hash), hash, pData, nDataLen);
00088   }
00089 
00090   public void HashFinal(IPKIFHashContext hash, byte[] pResult, SWIGTYPE_p_int pnResultLen) {
00091     pkif_moduleJNI.CPKIFCryptoPPRawPtr_HashFinal(swigCPtr, this, IPKIFHashContext.getCPtr(hash), hash, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen));
00092   }
00093 
00094   public boolean SupportsAlgorithm(CPKIFKeyMaterial key) {
00095     return pkif_moduleJNI.CPKIFCryptoPPRawPtr_SupportsAlgorithm(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key);
00096   }
00097 
00098   public void Sign(CPKIFKeyMaterial key, byte[] pHashData, int nHashDataLen, byte[] pSignature, SWIGTYPE_p_int nSignatureLen, HASH_ALG hashAlg) {
00099     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Sign(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, pHashData, nHashDataLen, pSignature, SWIGTYPE_p_int.getCPtr(nSignatureLen), hashAlg.swigValue());
00100   }
00101 
00102   public void Decrypt(CPKIFKeyMaterial key, byte[] pData, int nDataLen, byte[] pResult, SWIGTYPE_p_int pnResultLen, boolean pad) {
00103     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Decrypt__SWIG_0(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, pData, nDataLen, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen), pad);
00104   }
00105 
00106   public void Decrypt(CPKIFKeyMaterial key, byte[] pData, int nDataLen, byte[] pResult, SWIGTYPE_p_int pnResultLen) {
00107     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Decrypt__SWIG_1(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, pData, nDataLen, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen));
00108   }
00109 
00110   public void Decrypt(IPKIFRawCryptContext cryptContext, byte[] pData, int nDataLen, byte[] pResult, SWIGTYPE_p_int pnResultLen, boolean arg5) {
00111     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Decrypt__SWIG_2(swigCPtr, this, IPKIFRawCryptContext.getCPtr(cryptContext), cryptContext, pData, nDataLen, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen), arg5);
00112   }
00113 
00114   public void Encrypt(CPKIFKeyMaterial key, byte[] pData, int nDataLen, byte[] pResult, SWIGTYPE_p_int pnResultLen, boolean pad) {
00115     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Encrypt__SWIG_0(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, pData, nDataLen, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen), pad);
00116   }
00117 
00118   public void Encrypt(CPKIFKeyMaterial key, byte[] pData, int nDataLen, byte[] pResult, SWIGTYPE_p_int pnResultLen) {
00119     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Encrypt__SWIG_1(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, pData, nDataLen, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen));
00120   }
00121 
00122   public void Encrypt(IPKIFRawCryptContext cryptContext, byte[] pData, int nDataLen, byte[] pResult, SWIGTYPE_p_int pnResultLen, boolean arg5) {
00123     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Encrypt__SWIG_2(swigCPtr, this, IPKIFRawCryptContext.getCPtr(cryptContext), cryptContext, pData, nDataLen, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen), arg5);
00124   }
00125 
00126   public boolean Verify(CPKIFKeyMaterial key, byte[] pHashData, int nHashDataLen, byte[] pSignature, int nSignatureLen, HASH_ALG hashAlg) {
00127     return pkif_moduleJNI.CPKIFCryptoPPRawPtr_Verify(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, pHashData, nHashDataLen, pSignature, nSignatureLen, hashAlg.swigValue());
00128   }
00129 
00130   public boolean VerifyCertificate(CPKIFCertificate issCert, CPKIFCertificate subCert) {
00131     return pkif_moduleJNI.CPKIFCryptoPPRawPtr_VerifyCertificate(swigCPtr, this, CPKIFCertificate.getCPtr(issCert), issCert, CPKIFCertificate.getCPtr(subCert), subCert);
00132   }
00133 
00134   public IPKIFRawCryptContext CryptInit(CPKIFKeyMaterial key, boolean pad) {
00135     long cPtr = pkif_moduleJNI.CPKIFCryptoPPRawPtr_CryptInit__SWIG_0(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, pad);
00136     return (cPtr == 0) ? null : new IPKIFRawCryptContext(cPtr, false);
00137   }
00138 
00139   public IPKIFRawCryptContext CryptInit(CPKIFKeyMaterial key) {
00140     long cPtr = pkif_moduleJNI.CPKIFCryptoPPRawPtr_CryptInit__SWIG_1(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key);
00141     return (cPtr == 0) ? null : new IPKIFRawCryptContext(cPtr, false);
00142   }
00143 
00144   public IPKIFRawCryptContext HMACInit(CPKIFKeyMaterial key, HASH_ALG ha) {
00145     long cPtr = pkif_moduleJNI.CPKIFCryptoPPRawPtr_HMACInit(swigCPtr, this, CPKIFKeyMaterial.getCPtr(key), key, ha.swigValue());
00146     return (cPtr == 0) ? null : new IPKIFRawCryptContext(cPtr, false);
00147   }
00148 
00149   public void HMACUpdate(IPKIFRawCryptContext ctx, byte[] pData, int nDataLen) {
00150     pkif_moduleJNI.CPKIFCryptoPPRawPtr_HMACUpdate(swigCPtr, this, IPKIFRawCryptContext.getCPtr(ctx), ctx, pData, nDataLen);
00151   }
00152 
00153   public void HMACFinal(IPKIFRawCryptContext ctx, byte[] pResult, SWIGTYPE_p_int pnResultLen) {
00154     pkif_moduleJNI.CPKIFCryptoPPRawPtr_HMACFinal(swigCPtr, this, IPKIFRawCryptContext.getCPtr(ctx), ctx, pResult, SWIGTYPE_p_int.getCPtr(pnResultLen));
00155   }
00156 
00157   public void AddParent(IPKIFColleague parent) {
00158     pkif_moduleJNI.CPKIFCryptoPPRawPtr_AddParent(swigCPtr, this, IPKIFColleague.getCPtr(parent), parent);
00159   }
00160 
00161   public void RemoveParent(IPKIFColleague parent) {
00162     pkif_moduleJNI.CPKIFCryptoPPRawPtr_RemoveParent(swigCPtr, this, IPKIFColleague.getCPtr(parent), parent);
00163   }
00164 
00165   public boolean IsParent(IPKIFColleague arg0) {
00166     return pkif_moduleJNI.CPKIFCryptoPPRawPtr_IsParent(swigCPtr, this, IPKIFColleague.getCPtr(arg0), arg0);
00167   }
00168 
00169   public void InitializeMediator(SWIGTYPE_p_std__vectorT_CPKIFException_p_t errorInfo) {
00170     pkif_moduleJNI.CPKIFCryptoPPRawPtr_InitializeMediator__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__vectorT_CPKIFException_p_t.getCPtr(errorInfo));
00171   }
00172 
00173   public void InitializeMediator() {
00174     pkif_moduleJNI.CPKIFCryptoPPRawPtr_InitializeMediator__SWIG_1(swigCPtr, this);
00175   }
00176 
00177   public void Terminate() {
00178     pkif_moduleJNI.CPKIFCryptoPPRawPtr_Terminate(swigCPtr, this);
00179   }
00180 
00181   public void AddMediator(IPKIFColleaguePtr m) {
00182     pkif_moduleJNI.CPKIFCryptoPPRawPtr_AddMediator(swigCPtr, this, IPKIFColleaguePtr.getCPtr(m), m);
00183   }
00184 
00185   public void RemoveMediator(IPKIFColleague arg0) {
00186     pkif_moduleJNI.CPKIFCryptoPPRawPtr_RemoveMediator(swigCPtr, this, IPKIFColleague.getCPtr(arg0), arg0);
00187   }
00188 
00189   public void RemoveMediatorAssociations() {
00190     pkif_moduleJNI.CPKIFCryptoPPRawPtr_RemoveMediatorAssociations(swigCPtr, this);
00191   }
00192 
00193   public void GetMediators(IPKIFColleagueList v) {
00194     pkif_moduleJNI.CPKIFCryptoPPRawPtr_GetMediators(swigCPtr, this, IPKIFColleagueList.getCPtr(v), v);
00195   }
00196 
00197 }

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