PKIFailureInfo.java
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009 package com.orionsec.jpkif;
00010
00011 public final class PKIFailureInfo {
00012 public final static PKIFailureInfo BADALG = new PKIFailureInfo("BADALG", pkif_moduleJNI.BADALG_get());
00013 public final static PKIFailureInfo BADREQUEST = new PKIFailureInfo("BADREQUEST");
00014 public final static PKIFailureInfo BADDATAFORMAT = new PKIFailureInfo("BADDATAFORMAT");
00015 public final static PKIFailureInfo TIMENOTAVAILABLE = new PKIFailureInfo("TIMENOTAVAILABLE");
00016 public final static PKIFailureInfo UNACCEPTEDPOLICY = new PKIFailureInfo("UNACCEPTEDPOLICY");
00017 public final static PKIFailureInfo UNACCEPTEDEXTENSION = new PKIFailureInfo("UNACCEPTEDEXTENSION");
00018 public final static PKIFailureInfo ADDINFONOTAVAILABLE = new PKIFailureInfo("ADDINFONOTAVAILABLE");
00019 public final static PKIFailureInfo SYSTEMFAILURE = new PKIFailureInfo("SYSTEMFAILURE");
00020
00021 public final int swigValue() {
00022 return swigValue;
00023 }
00024
00025 public String toString() {
00026 return swigName;
00027 }
00028
00029 public static PKIFailureInfo swigToEnum(int swigValue) {
00030 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00031 return swigValues[swigValue];
00032 for (int i = 0; i < swigValues.length; i++)
00033 if (swigValues[i].swigValue == swigValue)
00034 return swigValues[i];
00035 throw new IllegalArgumentException("No enum " + PKIFailureInfo.class + " with value " + swigValue);
00036 }
00037
00038 private PKIFailureInfo(String swigName) {
00039 this.swigName = swigName;
00040 this.swigValue = swigNext++;
00041 }
00042
00043 private PKIFailureInfo(String swigName, int swigValue) {
00044 this.swigName = swigName;
00045 this.swigValue = swigValue;
00046 swigNext = swigValue+1;
00047 }
00048
00049 private PKIFailureInfo(String swigName, PKIFailureInfo swigEnum) {
00050 this.swigName = swigName;
00051 this.swigValue = swigEnum.swigValue;
00052 swigNext = this.swigValue+1;
00053 }
00054
00055 private static PKIFailureInfo[] swigValues = { BADALG, BADREQUEST, BADDATAFORMAT, TIMENOTAVAILABLE, UNACCEPTEDPOLICY, UNACCEPTEDEXTENSION, ADDINFONOTAVAILABLE, SYSTEMFAILURE };
00056 private static int swigNext = 0;
00057 private final int swigValue;
00058 private final String swigName;
00059 }
00060