00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public class CPKIFPathValidationResults {
00012 private long swigCPtr;
00013 protected boolean swigCMemOwn;
00014
00015 public CPKIFPathValidationResults(long cPtr, boolean cMemoryOwn) {
00016 swigCMemOwn = cMemoryOwn;
00017 swigCPtr = cPtr;
00018 }
00019
00020 public static long getCPtr(CPKIFPathValidationResults 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_CPKIFPathValidationResults(swigCPtr);
00033 }
00034 swigCPtr = 0;
00035 }
00036 }
00037
00038 public CPKIFPathValidationResults() {
00039 this(pkif_moduleJNI.new_CPKIFPathValidationResults(), true);
00040 }
00041
00042 public boolean PathSuccessfullyValidated() {
00043 return pkif_moduleJNI.CPKIFPathValidationResults_PathSuccessfullyValidated(swigCPtr, this);
00044 }
00045
00046 public boolean GetBasicChecksSuccessfullyPerformed() {
00047 return pkif_moduleJNI.CPKIFPathValidationResults_GetBasicChecksSuccessfullyPerformed(swigCPtr, this);
00048 }
00049
00050 public void SetBasicChecksSuccessfullyPerformed(boolean b) {
00051 pkif_moduleJNI.CPKIFPathValidationResults_SetBasicChecksSuccessfullyPerformed(swigCPtr, this, b);
00052 }
00053
00054 public boolean GetCertSignaturesVerified() {
00055 return pkif_moduleJNI.CPKIFPathValidationResults_GetCertSignaturesVerified(swigCPtr, this);
00056 }
00057
00058 public void SetCertSignaturesVerified(boolean b) {
00059 pkif_moduleJNI.CPKIFPathValidationResults_SetCertSignaturesVerified(swigCPtr, this, b);
00060 }
00061
00062 public boolean GetTargetIsTrustAnchor() {
00063 return pkif_moduleJNI.CPKIFPathValidationResults_GetTargetIsTrustAnchor(swigCPtr, this);
00064 }
00065
00066 public void SetTargetIsTrustAnchor(boolean b) {
00067 pkif_moduleJNI.CPKIFPathValidationResults_SetTargetIsTrustAnchor(swigCPtr, this, b);
00068 }
00069
00070 public RevocationStatus GetRevocationStatusMostSevere() {
00071 return RevocationStatus.swigToEnum(pkif_moduleJNI.CPKIFPathValidationResults_GetRevocationStatusMostSevere(swigCPtr, this));
00072 }
00073
00074 public void SetRevocationStatusMostSevere(RevocationStatus r) {
00075 pkif_moduleJNI.CPKIFPathValidationResults_SetRevocationStatusMostSevere(swigCPtr, this, r.swigValue());
00076 }
00077
00078 public CPKIFCertStatusPtr GetCertStatus() {
00079 return new CPKIFCertStatusPtr(pkif_moduleJNI.CPKIFPathValidationResults_GetCertStatus(swigCPtr, this), true);
00080 }
00081
00082 public void SetCertStatus(CPKIFCertStatusPtr certStatus) {
00083 pkif_moduleJNI.CPKIFPathValidationResults_SetCertStatus(swigCPtr, this, CPKIFCertStatusPtr.getCPtr(certStatus), certStatus);
00084 }
00085
00086 public int DiagnosticCode() {
00087 return pkif_moduleJNI.CPKIFPathValidationResults_DiagnosticCode(swigCPtr, this);
00088 }
00089
00090 public CPKIFAuthorityConstrainedSetTable GetAuthorityConstrainedSetTable() {
00091 long cPtr = pkif_moduleJNI.CPKIFPathValidationResults_GetAuthorityConstrainedSetTable(swigCPtr, this);
00092 return (cPtr == 0) ? null : new CPKIFAuthorityConstrainedSetTable(cPtr, false);
00093 }
00094
00095 public void GetAuthorityConstrainedSet(CPKIFPolicyInformationListPtr authSet) {
00096 pkif_moduleJNI.CPKIFPathValidationResults_GetAuthorityConstrainedSet(swigCPtr, this, CPKIFPolicyInformationListPtr.getCPtr(authSet), authSet);
00097 }
00098
00099 public void GetUserConstrainedSet(CPKIFPolicyInformationListPtr userSet) {
00100 pkif_moduleJNI.CPKIFPathValidationResults_GetUserConstrainedSet(swigCPtr, this, CPKIFPolicyInformationListPtr.getCPtr(userSet), userSet);
00101 }
00102
00103 public void SetUserConstrainedSet(CPKIFPolicyInformationListPtr userSet) {
00104 pkif_moduleJNI.CPKIFPathValidationResults_SetUserConstrainedSet(swigCPtr, this, CPKIFPolicyInformationListPtr.getCPtr(userSet), userSet);
00105 }
00106
00107 public boolean GetExplicitPolicyIndicator() {
00108 return pkif_moduleJNI.CPKIFPathValidationResults_GetExplicitPolicyIndicator(swigCPtr, this);
00109 }
00110
00111 public void SetExplicitPolicyIndicator(boolean e) {
00112 pkif_moduleJNI.CPKIFPathValidationResults_SetExplicitPolicyIndicator(swigCPtr, this, e);
00113 }
00114
00115 public void SetCertificate(CPKIFCertificateNodeEntryPtr cert) {
00116 pkif_moduleJNI.CPKIFPathValidationResults_SetCertificate(swigCPtr, this, CPKIFCertificateNodeEntryPtr.getCPtr(cert), cert);
00117 }
00118
00119 public CPKIFCertificateNodeEntryPtr GetCertificate() {
00120 return new CPKIFCertificateNodeEntryPtr(pkif_moduleJNI.CPKIFPathValidationResults_GetCertificate(swigCPtr, this), true);
00121 }
00122
00123 public void SetWorkingParams(CPKIFAlgorithmIdentifierPtr wp) {
00124 pkif_moduleJNI.CPKIFPathValidationResults_SetWorkingParams(swigCPtr, this, CPKIFAlgorithmIdentifierPtr.getCPtr(wp), wp);
00125 }
00126
00127 public CPKIFAlgorithmIdentifierPtr GetWorkingParams() {
00128 return new CPKIFAlgorithmIdentifierPtr(pkif_moduleJNI.CPKIFPathValidationResults_GetWorkingParams(swigCPtr, this), true);
00129 }
00130
00131 public boolean GetExtensionHandlerChecksSuccessfullyPerformed() {
00132 return pkif_moduleJNI.CPKIFPathValidationResults_GetExtensionHandlerChecksSuccessfullyPerformed(swigCPtr, this);
00133 }
00134
00135 public void SetExtensionHandlerChecksSuccessfullyPerformed(boolean b) {
00136 pkif_moduleJNI.CPKIFPathValidationResults_SetExtensionHandlerChecksSuccessfullyPerformed(swigCPtr, this, b);
00137 }
00138
00139 public IPKIFTrustAnchorPtr GetTrustAnchor() {
00140 return new IPKIFTrustAnchorPtr(pkif_moduleJNI.CPKIFPathValidationResults_GetTrustAnchor(swigCPtr, this), true);
00141 }
00142
00143 public void SetTrustAnchor(IPKIFTrustAnchorPtr ta) {
00144 pkif_moduleJNI.CPKIFPathValidationResults_SetTrustAnchor(swigCPtr, this, IPKIFTrustAnchorPtr.getCPtr(ta), ta);
00145 }
00146
00147 public boolean IsPermittedSubtreesSet() {
00148 return pkif_moduleJNI.CPKIFPathValidationResults_IsPermittedSubtreesSet(swigCPtr, this);
00149 }
00150
00151 public CPKIFGeneralSubtreeListPtr GetPermittedSubtrees() {
00152 return new CPKIFGeneralSubtreeListPtr(pkif_moduleJNI.CPKIFPathValidationResults_GetPermittedSubtrees(swigCPtr, this), true);
00153 }
00154
00155 public void SetPermittedSubtrees(CPKIFGeneralSubtreeListPtr subtree) {
00156 pkif_moduleJNI.CPKIFPathValidationResults_SetPermittedSubtrees(swigCPtr, this, CPKIFGeneralSubtreeListPtr.getCPtr(subtree), subtree);
00157 }
00158
00159 public boolean IsExcludedSubtreesSet() {
00160 return pkif_moduleJNI.CPKIFPathValidationResults_IsExcludedSubtreesSet(swigCPtr, this);
00161 }
00162
00163 public CPKIFGeneralSubtreeListPtr GetExcludedSubtrees() {
00164 return new CPKIFGeneralSubtreeListPtr(pkif_moduleJNI.CPKIFPathValidationResults_GetExcludedSubtrees(swigCPtr, this), true);
00165 }
00166
00167 public void SetExcludedSubtrees(CPKIFGeneralSubtreeListPtr subtree) {
00168 pkif_moduleJNI.CPKIFPathValidationResults_SetExcludedSubtrees(swigCPtr, this, CPKIFGeneralSubtreeListPtr.getCPtr(subtree), subtree);
00169 }
00170
00171 public boolean IsPendingExplicitPolicySet() {
00172 return pkif_moduleJNI.CPKIFPathValidationResults_IsPendingExplicitPolicySet(swigCPtr, this);
00173 }
00174
00175 public int GetPendingExplicitPolicy() {
00176 return pkif_moduleJNI.CPKIFPathValidationResults_GetPendingExplicitPolicy(swigCPtr, this);
00177 }
00178
00179 public void SetPendingExplicitPolicy(int skipCerts) {
00180 pkif_moduleJNI.CPKIFPathValidationResults_SetPendingExplicitPolicy(swigCPtr, this, skipCerts);
00181 }
00182
00183 public boolean IsPendingPolicyMappingSet() {
00184 return pkif_moduleJNI.CPKIFPathValidationResults_IsPendingPolicyMappingSet(swigCPtr, this);
00185 }
00186
00187 public int GetPendingPolicyMapping() {
00188 return pkif_moduleJNI.CPKIFPathValidationResults_GetPendingPolicyMapping(swigCPtr, this);
00189 }
00190
00191 public void SetPendingPolicyMapping(int skipCerts) {
00192 pkif_moduleJNI.CPKIFPathValidationResults_SetPendingPolicyMapping(swigCPtr, this, skipCerts);
00193 }
00194
00195 public boolean IsPendingAnyPolicySet() {
00196 return pkif_moduleJNI.CPKIFPathValidationResults_IsPendingAnyPolicySet(swigCPtr, this);
00197 }
00198
00199 public int GetPendingAnyPolicy() {
00200 return pkif_moduleJNI.CPKIFPathValidationResults_GetPendingAnyPolicy(swigCPtr, this);
00201 }
00202
00203 public void SetPendingAnyPolicy(int skipCerts) {
00204 pkif_moduleJNI.CPKIFPathValidationResults_SetPendingAnyPolicy(swigCPtr, this, skipCerts);
00205 }
00206
00207 public boolean IsPendingPathLengthSet() {
00208 return pkif_moduleJNI.CPKIFPathValidationResults_IsPendingPathLengthSet(swigCPtr, this);
00209 }
00210
00211 public int GetPendingPathLength() {
00212 return pkif_moduleJNI.CPKIFPathValidationResults_GetPendingPathLength(swigCPtr, this);
00213 }
00214
00215 public void SetPendingPathLength(int certs) {
00216 pkif_moduleJNI.CPKIFPathValidationResults_SetPendingPathLength(swigCPtr, this, certs);
00217 }
00218
00219 }