jsdsi.util
Class KeyEnum

java.lang.Object
  extended byjsdsi.util.AlgorithmEnum
      extended byjsdsi.util.KeyEnum
All Implemented Interfaces:
java.io.Serializable

public class KeyEnum
extends AlgorithmEnum

Experimental class and as such may be removed without warning.

Enum class for Key algorithms.

Version:
$Revision: 1.5 $ $Date: 2004/11/12 09:53:49 $
Author:
Sean Radford
See Also:
Serialized Form

Field Summary
static KeyEnum DSA
          The Digital Signature Algorithm as defined in FIPS PUB 186.
static KeyEnum RSA
          The RSA encryption algorithm as defined in PKCS #1.
 
Constructor Summary
protected KeyEnum(java.lang.String jdkName, java.lang.String spkiName)
           
 
Method Summary
static KeyEnum fromJdk(java.lang.String jdkName)
          Given a JDK name for a Key algorythm, return its KeyEnum
static KeyEnum fromSpki(java.lang.String spkiName)
          Given a SPKI name for a Key algorithm, return its KeyEnum
 
Methods inherited from class jsdsi.util.AlgorithmEnum
equals, hashCode, jdkName, spkiName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DSA

public static final KeyEnum DSA
The Digital Signature Algorithm as defined in FIPS PUB 186.


RSA

public static final KeyEnum RSA
The RSA encryption algorithm as defined in PKCS #1.

Constructor Detail

KeyEnum

protected KeyEnum(java.lang.String jdkName,
                  java.lang.String spkiName)
Parameters:
jdkName -
spkiName -
Method Detail

fromJdk

public static KeyEnum fromJdk(java.lang.String jdkName)
Given a JDK name for a Key algorythm, return its KeyEnum

Parameters:
jdkName - JDK name
Returns:
the KeyEnum

fromSpki

public static KeyEnum fromSpki(java.lang.String spkiName)
Given a SPKI name for a Key algorithm, return its KeyEnum

Parameters:
spkiName - SPKI name
Returns:
the KeyEnum


Copyright © 2002-2006 JSDSI. All Rights Reserved.