IPKIFPkiArtifact.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class IPKIFPkiArtifact {
00012 private long swigCPtr;
00013 protected boolean swigCMemOwn;
00014
00015 public IPKIFPkiArtifact(long cPtr, boolean cMemoryOwn) {
00016 swigCMemOwn = cMemoryOwn;
00017 swigCPtr = cPtr;
00018 }
00019
00020 public static long getCPtr(IPKIFPkiArtifact 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_IPKIFPkiArtifact(swigCPtr);
00033 }
00034 swigCPtr = 0;
00035 }
00036 }
00037
00038 public IPKIFPkiArtifact() {
00039 this(pkif_moduleJNI.new_IPKIFPkiArtifact(), true);
00040 }
00041
00042 public void AddSource(SWIGTYPE_p_std__string sourceURI) {
00043 pkif_moduleJNI.IPKIFPkiArtifact_AddSource__SWIG_0(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(sourceURI));
00044 }
00045
00046 public void AddSource(SWIGTYPE_p_std__string sourceURI, CPKIFTimePtr retrievalTime) {
00047 pkif_moduleJNI.IPKIFPkiArtifact_AddSource__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__string.getCPtr(sourceURI), CPKIFTimePtr.getCPtr(retrievalTime), retrievalTime);
00048 }
00049
00050 public void GetSources(RDNList sourceURIs) {
00051 pkif_moduleJNI.IPKIFPkiArtifact_GetSources__SWIG_0(swigCPtr, this, RDNList.getCPtr(sourceURIs), sourceURIs);
00052 }
00053
00054 public void GetSources(SWIGTYPE_p_std__vectorT_std__pairT_std__string_boost__shared_ptrT_CPKIFTime_t_t_t sourceURIs) {
00055 pkif_moduleJNI.IPKIFPkiArtifact_GetSources__SWIG_1(swigCPtr, this, SWIGTYPE_p_std__vectorT_std__pairT_std__string_boost__shared_ptrT_CPKIFTime_t_t_t.getCPtr(sourceURIs));
00056 }
00057
00058 public CPKIFTimePtr GetLatestRetrievalTime() {
00059 return new CPKIFTimePtr(pkif_moduleJNI.IPKIFPkiArtifact_GetLatestRetrievalTime(swigCPtr, this), true);
00060 }
00061
00062 public void SetVerificationPublicKey(CPKIFSubjectPublicKeyInfoPtr spki) {
00063 pkif_moduleJNI.IPKIFPkiArtifact_SetVerificationPublicKey__SWIG_0(swigCPtr, this, CPKIFSubjectPublicKeyInfoPtr.getCPtr(spki), spki);
00064 }
00065
00066 public CPKIFSubjectPublicKeyInfoPtr SetVerificationPublicKey() {
00067 return new CPKIFSubjectPublicKeyInfoPtr(pkif_moduleJNI.IPKIFPkiArtifact_SetVerificationPublicKey__SWIG_1(swigCPtr, this), true);
00068 }
00069
00070 public void SetVerificationParameters(CPKIFAlgorithmIdentifierPtr params) {
00071 pkif_moduleJNI.IPKIFPkiArtifact_SetVerificationParameters(swigCPtr, this, CPKIFAlgorithmIdentifierPtr.getCPtr(params), params);
00072 }
00073
00074 public CPKIFAlgorithmIdentifierPtr GetVerificationPublicKey() {
00075 return new CPKIFAlgorithmIdentifierPtr(pkif_moduleJNI.IPKIFPkiArtifact_GetVerificationPublicKey(swigCPtr, this), true);
00076 }
00077
00078 public PKIArtifactState GetState() {
00079 return PKIArtifactState.swigToEnum(pkif_moduleJNI.IPKIFPkiArtifact_GetState(swigCPtr, this));
00080 }
00081
00082 public void SetState(PKIArtifactState state) {
00083 pkif_moduleJNI.IPKIFPkiArtifact_SetState(swigCPtr, this, state.swigValue());
00084 }
00085
00086 }