HASH_ALG.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 HASH_ALG {
00012   public final static HASH_ALG MD5 = new HASH_ALG("MD5", pkif_moduleJNI.MD5_get());
00013   public final static HASH_ALG SHA1 = new HASH_ALG("SHA1", pkif_moduleJNI.SHA1_get());
00014   public final static HASH_ALG SHA224 = new HASH_ALG("SHA224", pkif_moduleJNI.SHA224_get());
00015   public final static HASH_ALG SHA256 = new HASH_ALG("SHA256", pkif_moduleJNI.SHA256_get());
00016   public final static HASH_ALG SHA384 = new HASH_ALG("SHA384", pkif_moduleJNI.SHA384_get());
00017   public final static HASH_ALG SHA512 = new HASH_ALG("SHA512", pkif_moduleJNI.SHA512_get());
00018 
00019   public final int swigValue() {
00020     return swigValue;
00021   }
00022 
00023   public String toString() {
00024     return swigName;
00025   }
00026 
00027   public static HASH_ALG 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 " + HASH_ALG.class + " with value " + swigValue);
00034   }
00035 
00036   private HASH_ALG(String swigName) {
00037     this.swigName = swigName;
00038     this.swigValue = swigNext++;
00039   }
00040 
00041   private HASH_ALG(String swigName, int swigValue) {
00042     this.swigName = swigName;
00043     this.swigValue = swigValue;
00044     swigNext = swigValue+1;
00045   }
00046 
00047   private HASH_ALG(String swigName, HASH_ALG swigEnum) {
00048     this.swigName = swigName;
00049     this.swigValue = swigEnum.swigValue;
00050     swigNext = this.swigValue+1;
00051   }
00052 
00053   private static HASH_ALG[] swigValues = { MD5, SHA1, SHA224, SHA256, SHA384, SHA512 };
00054   private static int swigNext = 0;
00055   private final int swigValue;
00056   private final String swigName;
00057 }
00058 

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