SYMKEY_MODE.java

Go to the documentation of this file.
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 SYMKEY_MODE {
00012   public final static SYMKEY_MODE ECB = new SYMKEY_MODE("ECB");
00013   public final static SYMKEY_MODE CBC = new SYMKEY_MODE("CBC");
00014   public final static SYMKEY_MODE CTR = new SYMKEY_MODE("CTR");
00015   public final static SYMKEY_MODE CFB8 = new SYMKEY_MODE("CFB8");
00016   public final static SYMKEY_MODE CFB64 = new SYMKEY_MODE("CFB64");
00017   public final static SYMKEY_MODE OFB8 = new SYMKEY_MODE("OFB8");
00018   public final static SYMKEY_MODE OFB64 = new SYMKEY_MODE("OFB64");
00019 
00020   public final int swigValue() {
00021     return swigValue;
00022   }
00023 
00024   public String toString() {
00025     return swigName;
00026   }
00027 
00028   public static SYMKEY_MODE swigToEnum(int swigValue) {
00029     if (swigValue < swigValues.length && swigValue >= 0 && swigValues[swigValue].swigValue == swigValue)
00030       return swigValues[swigValue];
00031     for (int i = 0; i < swigValues.length; i++)
00032       if (swigValues[i].swigValue == swigValue)
00033         return swigValues[i];
00034     throw new IllegalArgumentException("No enum " + SYMKEY_MODE.class + " with value " + swigValue);
00035   }
00036 
00037   private SYMKEY_MODE(String swigName) {
00038     this.swigName = swigName;
00039     this.swigValue = swigNext++;
00040   }
00041 
00042   private SYMKEY_MODE(String swigName, int swigValue) {
00043     this.swigName = swigName;
00044     this.swigValue = swigValue;
00045     swigNext = swigValue+1;
00046   }
00047 
00048   private SYMKEY_MODE(String swigName, SYMKEY_MODE swigEnum) {
00049     this.swigName = swigName;
00050     this.swigValue = swigEnum.swigValue;
00051     swigNext = this.swigValue+1;
00052   }
00053 
00054   private static SYMKEY_MODE[] swigValues = { ECB, CBC, CTR, CFB8, CFB64, OFB8, OFB64 };
00055   private static int swigNext = 0;
00056   private final int swigValue;
00057   private final String swigName;
00058 }
00059 

Generated on Mon Nov 15 11:15:56 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6