CPKIFTimestampVerifier.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 CPKIFTimestampVerifier {
00012   private long swigCPtr;
00013   protected boolean swigCMemOwn;
00014 
00015   public CPKIFTimestampVerifier(long cPtr, boolean cMemoryOwn) {
00016     swigCMemOwn = cMemoryOwn;
00017     swigCPtr = cPtr;
00018   }
00019 
00020   public static long getCPtr(CPKIFTimestampVerifier 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_CPKIFTimestampVerifier(swigCPtr);
00033       }
00034       swigCPtr = 0;
00035     }
00036   }
00037 
00038   public CPKIFTimestampVerifier() {
00039     this(pkif_moduleJNI.new_CPKIFTimestampVerifier(), true);
00040   }
00041 
00042   public void SetMediator(IPKIFColleaguePtr m) {
00043     pkif_moduleJNI.CPKIFTimestampVerifier_SetMediator(swigCPtr, this, IPKIFColleaguePtr.getCPtr(m), m);
00044   }
00045 
00046   public void SetMinimumVerificationStatus(CMSPathValidationStatus v) {
00047     pkif_moduleJNI.CPKIFTimestampVerifier_SetMinimumVerificationStatus(swigCPtr, this, v.swigValue());
00048   }
00049 
00050   public void SetPathSettings(CPKIFPathSettingsPtr p) {
00051     pkif_moduleJNI.CPKIFTimestampVerifier_SetPathSettings(swigCPtr, this, CPKIFPathSettingsPtr.getCPtr(p), p);
00052   }
00053 
00054   public void SetSkew(int seconds) {
00055     pkif_moduleJNI.CPKIFTimestampVerifier_SetSkew(swigCPtr, this, seconds);
00056   }
00057 
00058   public void SetComparisonTime(CPKIFTimePtr time) {
00059     pkif_moduleJNI.CPKIFTimestampVerifier_SetComparisonTime(swigCPtr, this, CPKIFTimePtr.getCPtr(time), time);
00060   }
00061 
00062   public IPKIFColleaguePtr GetMediator() {
00063     return new IPKIFColleaguePtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetMediator(swigCPtr, this), true);
00064   }
00065 
00066   public CMSPathValidationStatus GetMinimumVerificationStatus() {
00067     return CMSPathValidationStatus.swigToEnum(pkif_moduleJNI.CPKIFTimestampVerifier_GetMinimumVerificationStatus(swigCPtr, this));
00068   }
00069 
00070   public CPKIFPathSettingsPtr GetPathSettings() {
00071     return new CPKIFPathSettingsPtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetPathSettings(swigCPtr, this), true);
00072   }
00073 
00074   public int GetSkew() {
00075     return pkif_moduleJNI.CPKIFTimestampVerifier_GetSkew(swigCPtr, this);
00076   }
00077 
00078   public CPKIFTimePtr GetComparisonTime() {
00079     return new CPKIFTimePtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetComparisonTime(swigCPtr, this), true);
00080   }
00081 
00082   public void SetDataComplete(CPKIFBufferPtr origData) {
00083     pkif_moduleJNI.CPKIFTimestampVerifier_SetDataComplete(swigCPtr, this, CPKIFBufferPtr.getCPtr(origData), origData);
00084   }
00085 
00086   public void SetDataHash(CPKIFBufferPtr hash, HASH_ALG ha) {
00087     pkif_moduleJNI.CPKIFTimestampVerifier_SetDataHash(swigCPtr, this, CPKIFBufferPtr.getCPtr(hash), hash, ha.swigValue());
00088   }
00089 
00090   public void SetDataHashSet(CPKIFParallelHashPtr ph) {
00091     pkif_moduleJNI.CPKIFTimestampVerifier_SetDataHashSet(swigCPtr, this, CPKIFParallelHashPtr.getCPtr(ph), ph);
00092   }
00093 
00094   public CPKIFBufferPtr GetDataComplete() {
00095     return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetDataComplete(swigCPtr, this), true);
00096   }
00097 
00098   public CPKIFBufferPtr GetDataHash(SWIGTYPE_p_PKIFCRYPTO__HASH_ALG ha) {
00099     return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetDataHash(swigCPtr, this, SWIGTYPE_p_PKIFCRYPTO__HASH_ALG.getCPtr(ha)), true);
00100   }
00101 
00102   public CPKIFParallelHashPtr GetDataHashSet() {
00103     return new CPKIFParallelHashPtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetDataHashSet(swigCPtr, this), true);
00104   }
00105 
00106   public void Verify(CPKIFContentInfoPtr timestamp) {
00107     pkif_moduleJNI.CPKIFTimestampVerifier_Verify(swigCPtr, this, CPKIFContentInfoPtr.getCPtr(timestamp), timestamp);
00108   }
00109 
00110   public CMSVerificationStatus GetVerificationStatus() {
00111     return CMSVerificationStatus.swigToEnum(pkif_moduleJNI.CPKIFTimestampVerifier_GetVerificationStatus(swigCPtr, this));
00112   }
00113 
00114   public CPKIFCertificatePathPtr GetCertificatePath() {
00115     return new CPKIFCertificatePathPtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetCertificatePath(swigCPtr, this), true);
00116   }
00117 
00118   public CPKIFPathValidationResultsPtr GetPathValidationResults() {
00119     return new CPKIFPathValidationResultsPtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetPathValidationResults(swigCPtr, this), true);
00120   }
00121 
00122   public CPKIFCertificatePtr GetTSACertificate() {
00123     return new CPKIFCertificatePtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetTSACertificate(swigCPtr, this), true);
00124   }
00125 
00126   public CPKIFTimePtr GetTSADateTime() {
00127     return new CPKIFTimePtr(pkif_moduleJNI.CPKIFTimestampVerifier_GetTSADateTime(swigCPtr, this), true);
00128   }
00129 
00130 }

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