00001 /* ---------------------------------------------------------------------------- 00002 * This file was automatically generated by SWIG (http://www.swig.org). 00003 * Version 2.0.1 00004 * 00005 * Do not make changes to this file unless you know what you are doing--modify 00006 * the SWIG interface file instead. 00007 * ----------------------------------------------------------------------------- */ 00008 00009 package com.orionsec.jpkif; 00010 00011 public final class PKIStatus { 00012 public final static PKIStatus GRANTED = new PKIStatus("GRANTED", pkif_moduleJNI.GRANTED_get()); 00013 public final static PKIStatus GRANTEDWITHMODS = new PKIStatus("GRANTEDWITHMODS"); 00014 public final static PKIStatus REJECTION = new PKIStatus("REJECTION"); 00015 public final static PKIStatus WAITING = new PKIStatus("WAITING"); 00016 public final static PKIStatus REVOCATIONWARNING = new PKIStatus("REVOCATIONWARNING"); 00017 public final static PKIStatus REVOCATIONNOTIFICATION = new PKIStatus("REVOCATIONNOTIFICATION"); 00018 00019 public final int swigValue() { 00020 return swigValue; 00021 } 00022 00023 public String toString() { 00024 return swigName; 00025 } 00026 00027 public static PKIStatus swigToEnum(int swigValue) { 00028 if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue) 00029 return swigValues[swigValue]; 00030 for (int i = 0; i < swigValues.length; i++) 00031 if (swigValues[i].swigValue == swigValue) 00032 return swigValues[i]; 00033 throw new IllegalArgumentException("No enum " + PKIStatus.class + " with value " + swigValue); 00034 } 00035 00036 private PKIStatus(String swigName) { 00037 this.swigName = swigName; 00038 this.swigValue = swigNext++; 00039 } 00040 00041 private PKIStatus(String swigName, int swigValue) { 00042 this.swigName = swigName; 00043 this.swigValue = swigValue; 00044 swigNext = swigValue+1; 00045 } 00046 00047 private PKIStatus(String swigName, PKIStatus swigEnum) { 00048 this.swigName = swigName; 00049 this.swigValue = swigEnum.swigValue; 00050 swigNext = this.swigValue+1; 00051 } 00052 00053 private static PKIStatus[] swigValues = { GRANTED, GRANTEDWITHMODS, REJECTION, WAITING, REVOCATIONWARNING, REVOCATIONNOTIFICATION }; 00054 private static int swigNext = 0; 00055 private final int swigValue; 00056 private final String swigName; 00057 } 00058