00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class CPKIFSignerInfoPtr {
00012 private long swigCPtr;
00013 protected boolean swigCMemOwn;
00014
00015 public CPKIFSignerInfoPtr(long cPtr, boolean cMemoryOwn) {
00016 swigCMemOwn = cMemoryOwn;
00017 swigCPtr = cPtr;
00018 }
00019
00020 public static long getCPtr(CPKIFSignerInfoPtr 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_CPKIFSignerInfoPtr(swigCPtr);
00033 }
00034 swigCPtr = 0;
00035 }
00036 }
00037
00038 public void reset() {
00039 pkif_moduleJNI.CPKIFSignerInfoPtr_reset(swigCPtr, this);
00040 }
00041
00042 public CPKIFSignerInfo __deref__() {
00043 long cPtr = pkif_moduleJNI.CPKIFSignerInfoPtr___deref__(swigCPtr, this);
00044 return (cPtr == 0) ? null : new CPKIFSignerInfo(cPtr, false);
00045 }
00046
00047 public CPKIFSignerInfo get() {
00048 long cPtr = pkif_moduleJNI.CPKIFSignerInfoPtr_get(swigCPtr, this);
00049 return (cPtr == 0) ? null : new CPKIFSignerInfo(cPtr, false);
00050 }
00051
00052 public boolean unique() {
00053 return pkif_moduleJNI.CPKIFSignerInfoPtr_unique(swigCPtr, this);
00054 }
00055
00056 public int use_count() {
00057 return pkif_moduleJNI.CPKIFSignerInfoPtr_use_count(swigCPtr, this);
00058 }
00059
00060 public void swap(CPKIFSignerInfoPtr other) {
00061 pkif_moduleJNI.CPKIFSignerInfoPtr_swap(swigCPtr, this, CPKIFSignerInfoPtr.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.CPKIFSignerInfoPtr__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(CPKIFSignerInfoPtr r) {
00070 return pkif_moduleJNI.CPKIFSignerInfoPtr__internal_equiv(swigCPtr, this, CPKIFSignerInfoPtr.getCPtr(r), r);
00071 }
00072
00073 public void SetCredential(CPKIFCredentialPtr cred, boolean enforceKeyUsage) {
00074 pkif_moduleJNI.CPKIFSignerInfoPtr_SetCredential__SWIG_0(swigCPtr, this, CPKIFCredentialPtr.getCPtr(cred), cred, enforceKeyUsage);
00075 }
00076
00077 public void SetCredential(CPKIFCredentialPtr cred) {
00078 pkif_moduleJNI.CPKIFSignerInfoPtr_SetCredential__SWIG_1(swigCPtr, this, CPKIFCredentialPtr.getCPtr(cred), cred);
00079 }
00080
00081 public CPKIFCredentialPtr GetCredential() {
00082 return new CPKIFCredentialPtr(pkif_moduleJNI.CPKIFSignerInfoPtr_GetCredential(swigCPtr, this), true);
00083 }
00084
00085 public boolean Decoded() {
00086 return pkif_moduleJNI.CPKIFSignerInfoPtr_Decoded(swigCPtr, this);
00087 }
00088
00089 public long Version() {
00090 return pkif_moduleJNI.CPKIFSignerInfoPtr_Version(swigCPtr, this);
00091 }
00092
00093 public CPKIFSignerInfo.SignerIdentifierChoice GetSignerIdentifierChoice() {
00094 return CPKIFSignerInfo.SignerIdentifierChoice.swigToEnum(pkif_moduleJNI.CPKIFSignerInfoPtr_GetSignerIdentifierChoice(swigCPtr, this));
00095 }
00096
00097 public void SetIssuerAndSerialNumber(CPKIFIssuerAndSerialNumberPtr iasn) {
00098 pkif_moduleJNI.CPKIFSignerInfoPtr_SetIssuerAndSerialNumber(swigCPtr, this, CPKIFIssuerAndSerialNumberPtr.getCPtr(iasn), iasn);
00099 }
00100
00101 public CPKIFIssuerAndSerialNumberPtr GetIssuerAndSerialNumber() {
00102 return new CPKIFIssuerAndSerialNumberPtr(pkif_moduleJNI.CPKIFSignerInfoPtr_GetIssuerAndSerialNumber(swigCPtr, this), true);
00103 }
00104
00105 public void SetSKID(CPKIFBufferPtr skid) {
00106 pkif_moduleJNI.CPKIFSignerInfoPtr_SetSKID(swigCPtr, this, CPKIFBufferPtr.getCPtr(skid), skid);
00107 }
00108
00109 public CPKIFBufferPtr GetSKID() {
00110 return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFSignerInfoPtr_GetSKID(swigCPtr, this), true);
00111 }
00112
00113 public CPKIFAlgorithmIdentifierPtr GetDigestAlg() {
00114 return new CPKIFAlgorithmIdentifierPtr(pkif_moduleJNI.CPKIFSignerInfoPtr_GetDigestAlg(swigCPtr, this), true);
00115 }
00116
00117 public void SetDigestAlg(CPKIFAlgorithmIdentifierPtr digAlg) {
00118 pkif_moduleJNI.CPKIFSignerInfoPtr_SetDigestAlg(swigCPtr, this, CPKIFAlgorithmIdentifierPtr.getCPtr(digAlg), digAlg);
00119 }
00120
00121 public void GetSignedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_PKIFAllocT_boost__shared_ptrT_CPKIFAttribute_t_t_t sal) {
00122 pkif_moduleJNI.CPKIFSignerInfoPtr_GetSignedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_PKIFAllocT_boost__shared_ptrT_CPKIFAttribute_t_t_t.getCPtr(sal));
00123 }
00124
00125 public void AddSignedAttribute(CPKIFAttributePtr sa) {
00126 pkif_moduleJNI.CPKIFSignerInfoPtr_AddSignedAttribute(swigCPtr, this, CPKIFAttributePtr.getCPtr(sa), sa);
00127 }
00128
00129 public CPKIFAlgorithmIdentifierPtr GetSignatureAlgorithm() {
00130 return new CPKIFAlgorithmIdentifierPtr(pkif_moduleJNI.CPKIFSignerInfoPtr_GetSignatureAlgorithm(swigCPtr, this), true);
00131 }
00132
00133 public CPKIFBufferPtr GetSignature() {
00134 return new CPKIFBufferPtr(pkif_moduleJNI.CPKIFSignerInfoPtr_GetSignature(swigCPtr, this), true);
00135 }
00136
00137 public void GetUnsignedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_PKIFAllocT_boost__shared_ptrT_CPKIFAttribute_t_t_t ual) {
00138 pkif_moduleJNI.CPKIFSignerInfoPtr_GetUnsignedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_PKIFAllocT_boost__shared_ptrT_CPKIFAttribute_t_t_t.getCPtr(ual));
00139 }
00140
00141 public void AddUnsignedAttribute(CPKIFAttributePtr ua) {
00142 pkif_moduleJNI.CPKIFSignerInfoPtr_AddUnsignedAttribute(swigCPtr, this, CPKIFAttributePtr.getCPtr(ua), ua);
00143 }
00144
00145 public void GetEncodedSignedAttributes(CPKIFBufferPtr buf) {
00146 pkif_moduleJNI.CPKIFSignerInfoPtr_GetEncodedSignedAttributes(swigCPtr, this, CPKIFBufferPtr.getCPtr(buf), buf);
00147 }
00148
00149 public void GetEncodedUnsignedAttributes(CPKIFBufferPtr buf) {
00150 pkif_moduleJNI.CPKIFSignerInfoPtr_GetEncodedUnsignedAttributes(swigCPtr, this, CPKIFBufferPtr.getCPtr(buf), buf);
00151 }
00152
00153 public void _GetSignedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attrVector) {
00154 pkif_moduleJNI.CPKIFSignerInfoPtr__GetSignedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attrVector));
00155 }
00156
00157 public void _GetUnsignedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attrVector) {
00158 pkif_moduleJNI.CPKIFSignerInfoPtr__GetUnsignedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attrVector));
00159 }
00160
00161 public void GetAddedSignedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attr) {
00162 pkif_moduleJNI.CPKIFSignerInfoPtr_GetAddedSignedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attr));
00163 }
00164
00165 public void GetAddedUnsignedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attr) {
00166 pkif_moduleJNI.CPKIFSignerInfoPtr_GetAddedUnsignedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attr));
00167 }
00168
00169 public void GetUnprotectedAttributes(IPKIFParseAttributes m, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attr) {
00170 pkif_moduleJNI.CPKIFSignerInfoPtr_GetUnprotectedAttributes(swigCPtr, this, IPKIFParseAttributes.getCPtr(m), m, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attr));
00171 }
00172
00173 public void GetAttributes(IPKIFParseAttributes m, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attr) {
00174 pkif_moduleJNI.CPKIFSignerInfoPtr_GetAttributes(swigCPtr, this, IPKIFParseAttributes.getCPtr(m), m, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attr));
00175 }
00176
00177 public void GetEncodedUnprotectedAttributes(CPKIFBufferPtr buf) {
00178 pkif_moduleJNI.CPKIFSignerInfoPtr_GetEncodedUnprotectedAttributes(swigCPtr, this, CPKIFBufferPtr.getCPtr(buf), buf);
00179 }
00180
00181 public void GetEncodedAttributes(CPKIFBufferPtr buf) {
00182 pkif_moduleJNI.CPKIFSignerInfoPtr_GetEncodedAttributes(swigCPtr, this, CPKIFBufferPtr.getCPtr(buf), buf);
00183 }
00184
00185 public void GetAddedUnprotectedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attr) {
00186 pkif_moduleJNI.CPKIFSignerInfoPtr_GetAddedUnprotectedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attr));
00187 }
00188
00189 public void GetAddedAttributes(SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t attr) {
00190 pkif_moduleJNI.CPKIFSignerInfoPtr_GetAddedAttributes(swigCPtr, this, SWIGTYPE_p_std__vectorT_boost__shared_ptrT_CPKIFAttribute_t_t.getCPtr(attr));
00191 }
00192
00193 }