jsdsi.util
Class SignatureAlgoEnum

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

public class SignatureAlgoEnum
extends AlgorithmEnum

Experimental class and as such may be removed without warning.

Enum class for Signature Algorythms.

Version:
$Revision: 1.2 $ $Date: 2004/11/08 12:08:08 $
Author:
Sean Radford
See Also:
Serialized Form

Constructor Summary
protected SignatureAlgoEnum(DigestAlgoEnum digest, KeyEnum key)
           
 
Method Summary
static SignatureAlgoEnum create(DigestAlgoEnum digest, KeyEnum key)
          Create a SignatureAlgoEnum
static SignatureAlgoEnum fromJdk(java.lang.String jdkName)
          Given a JDK name for a Signature algorythm, return its SignatureAlgoEnum
static SignatureAlgoEnum fromSpki(java.lang.String spkiName)
          Given a SPKI name for a Signature algorythm, return its SignatureAlgoEnum
 DigestAlgoEnum getDigestEnum()
          Return the DigestAlgoEnum for this SignatureAlgoEnum
 KeyEnum getKeyEnum()
          Return the KeyEnum for this SignatureAlgoEnum
 
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
 

Constructor Detail

SignatureAlgoEnum

protected SignatureAlgoEnum(DigestAlgoEnum digest,
                            KeyEnum key)
Method Detail

getDigestEnum

public DigestAlgoEnum getDigestEnum()
Return the DigestAlgoEnum for this SignatureAlgoEnum

Returns:
the DigestAlgoEnum

getKeyEnum

public KeyEnum getKeyEnum()
Return the KeyEnum for this SignatureAlgoEnum

Returns:
the KeyEnum

create

public static SignatureAlgoEnum create(DigestAlgoEnum digest,
                                       KeyEnum key)
Create a SignatureAlgoEnum

Parameters:
digest - the DigestAlgoEnum
key - the KeyEnum
Returns:
the SignatureAlgoEnum

fromJdk

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

Parameters:
jdkName - JDK name
Returns:
the SignatureAlgoEnum
Throws:
JsdsiRuntimeException - on error

fromSpki

public static SignatureAlgoEnum fromSpki(java.lang.String spkiName)
Given a SPKI name for a Signature algorythm, return its SignatureAlgoEnum

Parameters:
spkiName - SPKI name
Returns:
the SignatureAlgoEnum
Throws:
JsdsiRuntimeException - on error


Copyright © 2002-2006 JSDSI. All Rights Reserved.