CPKIFCertificateNodeEntry.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 CPKIFCertificateNodeEntry extends IPKIFPkiArtifact {
00012 private long swigCPtr;
00013
00014 public CPKIFCertificateNodeEntry(long cPtr, boolean cMemoryOwn) {
00015 super(pkif_moduleJNI.CPKIFCertificateNodeEntry_SWIGUpcast(cPtr), cMemoryOwn);
00016 swigCPtr = cPtr;
00017 }
00018
00019 public static long getCPtr(CPKIFCertificateNodeEntry obj) {
00020 return (obj == null) ? 0 : obj.swigCPtr;
00021 }
00022
00023 protected void finalize() {
00024 delete();
00025 }
00026
00027 public synchronized void delete() {
00028 if (swigCPtr != 0) {
00029 if (swigCMemOwn) {
00030 swigCMemOwn = false;
00031 pkif_moduleJNI.delete_CPKIFCertificateNodeEntry(swigCPtr);
00032 }
00033 swigCPtr = 0;
00034 }
00035 super.delete();
00036 }
00037
00038 public CPKIFCertificateNodeEntry() {
00039 this(pkif_moduleJNI.new_CPKIFCertificateNodeEntry__SWIG_0(), true);
00040 }
00041
00042 public CPKIFCertificateNodeEntry(CPKIFCertificatePtr cert) {
00043 this(pkif_moduleJNI.new_CPKIFCertificateNodeEntry__SWIG_1(CPKIFCertificatePtr.getCPtr(cert), cert), true);
00044 }
00045
00046 public CPKIFCertificatePtr GetCert() {
00047 return new CPKIFCertificatePtr(pkif_moduleJNI.CPKIFCertificateNodeEntry_GetCert(swigCPtr, this), true);
00048 }
00049
00050 public void SetCert(CPKIFCertificatePtr cert) {
00051 pkif_moduleJNI.CPKIFCertificateNodeEntry_SetCert(swigCPtr, this, CPKIFCertificatePtr.getCPtr(cert), cert);
00052 }
00053
00054 public void SetIgnore() {
00055 pkif_moduleJNI.CPKIFCertificateNodeEntry_SetIgnore(swigCPtr, this);
00056 }
00057
00058 public void ClearIgnore() {
00059 pkif_moduleJNI.CPKIFCertificateNodeEntry_ClearIgnore(swigCPtr, this);
00060 }
00061
00062 public boolean GetIgnore() {
00063 return pkif_moduleJNI.CPKIFCertificateNodeEntry_GetIgnore(swigCPtr, this);
00064 }
00065
00066 public void SetNameIgnore() {
00067 pkif_moduleJNI.CPKIFCertificateNodeEntry_SetNameIgnore(swigCPtr, this);
00068 }
00069
00070 public void ClearNameIgnore() {
00071 pkif_moduleJNI.CPKIFCertificateNodeEntry_ClearNameIgnore(swigCPtr, this);
00072 }
00073
00074 public boolean GetHardIgnore() {
00075 return pkif_moduleJNI.CPKIFCertificateNodeEntry_GetHardIgnore(swigCPtr, this);
00076 }
00077
00078 public void ClearProcessedExtensions() {
00079 pkif_moduleJNI.CPKIFCertificateNodeEntry_ClearProcessedExtensions(swigCPtr, this);
00080 }
00081
00082 public void MarkExtensionAsProcessed(CPKIFX509ExtensionPtr ref) {
00083 pkif_moduleJNI.CPKIFCertificateNodeEntry_MarkExtensionAsProcessed(swigCPtr, this, CPKIFX509ExtensionPtr.getCPtr(ref), ref);
00084 }
00085
00086 public boolean AreThereAnyUnprocessedCriticalExtensions() {
00087 return pkif_moduleJNI.CPKIFCertificateNodeEntry_AreThereAnyUnprocessedCriticalExtensions(swigCPtr, this);
00088 }
00089
00090 public void SetStatus(CPKIFCertStatusPtr status) {
00091 pkif_moduleJNI.CPKIFCertificateNodeEntry_SetStatus(swigCPtr, this, CPKIFCertStatusPtr.getCPtr(status), status);
00092 }
00093
00094 public void GetStatus(CPKIFCertStatusPtr status) {
00095 pkif_moduleJNI.CPKIFCertificateNodeEntry_GetStatus__SWIG_0(swigCPtr, this, CPKIFCertStatusPtr.getCPtr(status), status);
00096 }
00097
00098 public CPKIFCertStatusPtr GetStatus() {
00099 return new CPKIFCertStatusPtr(pkif_moduleJNI.CPKIFCertificateNodeEntry_GetStatus__SWIG_1(swigCPtr, this), true);
00100 }
00101
00102 public boolean GetProcessedSuccessfully() {
00103 return pkif_moduleJNI.CPKIFCertificateNodeEntry_GetProcessedSuccessfully(swigCPtr, this);
00104 }
00105
00106 public void ClearScore() {
00107 pkif_moduleJNI.CPKIFCertificateNodeEntry_ClearScore(swigCPtr, this);
00108 }
00109
00110 public void AddToScore(int add) {
00111 pkif_moduleJNI.CPKIFCertificateNodeEntry_AddToScore(swigCPtr, this, add);
00112 }
00113
00114 public int GetScore() {
00115 return pkif_moduleJNI.CPKIFCertificateNodeEntry_GetScore(swigCPtr, this);
00116 }
00117
00118 public PKIInfoSource GetSource() {
00119 return PKIInfoSource.swigToEnum(pkif_moduleJNI.CPKIFCertificateNodeEntry_GetSource(swigCPtr, this));
00120 }
00121
00122 public void SetSource(PKIInfoSource source) {
00123 pkif_moduleJNI.CPKIFCertificateNodeEntry_SetSource(swigCPtr, this, source.swigValue());
00124 }
00125
00126 }