CPKIFCertStatus.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 CPKIFCertStatus {
00012 private long swigCPtr;
00013 protected boolean swigCMemOwn;
00014
00015 public CPKIFCertStatus(long cPtr, boolean cMemoryOwn) {
00016 swigCMemOwn = cMemoryOwn;
00017 swigCPtr = cPtr;
00018 }
00019
00020 public static long getCPtr(CPKIFCertStatus 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_CPKIFCertStatus(swigCPtr);
00033 }
00034 swigCPtr = 0;
00035 }
00036 }
00037
00038 public CPKIFCertStatus() {
00039 this(pkif_moduleJNI.new_CPKIFCertStatus(), true);
00040 }
00041
00042 public int GetDiagnosticCode() {
00043 return pkif_moduleJNI.CPKIFCertStatus_GetDiagnosticCode(swigCPtr, this);
00044 }
00045
00046 public void SetDiagnosticCode(int errorCode) {
00047 pkif_moduleJNI.CPKIFCertStatus_SetDiagnosticCode(swigCPtr, this, errorCode);
00048 }
00049
00050 public boolean GetSignatureVerified() {
00051 return pkif_moduleJNI.CPKIFCertStatus_GetSignatureVerified(swigCPtr, this);
00052 }
00053
00054 public void SetSignatureVerified(boolean sigVerified) {
00055 pkif_moduleJNI.CPKIFCertStatus_SetSignatureVerified(swigCPtr, this, sigVerified);
00056 }
00057
00058 public RevocationStatus GetRevocationStatus() {
00059 return RevocationStatus.swigToEnum(pkif_moduleJNI.CPKIFCertStatus_GetRevocationStatus(swigCPtr, this));
00060 }
00061
00062 public void SetRevocationStatus(RevocationStatus revStatus) {
00063 pkif_moduleJNI.CPKIFCertStatus_SetRevocationStatus(swigCPtr, this, revStatus.swigValue());
00064 }
00065
00066 public boolean GetPassedValidationChecks() {
00067 return pkif_moduleJNI.CPKIFCertStatus_GetPassedValidationChecks(swigCPtr, this);
00068 }
00069
00070 public void SetPassedValidationChecks(boolean valChecks) {
00071 pkif_moduleJNI.CPKIFCertStatus_SetPassedValidationChecks(swigCPtr, this, valChecks);
00072 }
00073
00074 public void AddRevocationSource(int revSourceType, IPKIFRevSourceInfoPtr revSource, RevocationStatus status, int errorCode) {
00075 pkif_moduleJNI.CPKIFCertStatus_AddRevocationSource__SWIG_0(swigCPtr, this, revSourceType, IPKIFRevSourceInfoPtr.getCPtr(revSource), revSource, status.swigValue(), errorCode);
00076 }
00077
00078 public void AddRevocationSource(int revSourceType, IPKIFRevSourceInfoPtr revSource, RevocationStatus status) {
00079 pkif_moduleJNI.CPKIFCertStatus_AddRevocationSource__SWIG_1(swigCPtr, this, revSourceType, IPKIFRevSourceInfoPtr.getCPtr(revSource), revSource, status.swigValue());
00080 }
00081
00082 public void GetRevocationSources(RevocationSourceList rsl) {
00083 pkif_moduleJNI.CPKIFCertStatus_GetRevocationSources(swigCPtr, this, RevocationSourceList.getCPtr(rsl), rsl);
00084 }
00085
00086 public boolean GetIsTrustAnchor() {
00087 return pkif_moduleJNI.CPKIFCertStatus_GetIsTrustAnchor(swigCPtr, this);
00088 }
00089
00090 public void SetIsTrustAnchor(boolean isTrustAnchor) {
00091 pkif_moduleJNI.CPKIFCertStatus_SetIsTrustAnchor(swigCPtr, this, isTrustAnchor);
00092 }
00093
00094 }