jsdsi.util
Class SignatureUtils

java.lang.Object
  extended byjsdsi.util.SignatureUtils

public class SignatureUtils
extends java.lang.Object

Experimental class and as such may be removed without warning.

Utility class for Signatures.

Version:
$Revision: 1.7 $ $Date: 2004/11/08 12:08:08 $
Author:
Sean Radford

Method Summary
static java.security.MessageDigest getDigesterForJdkSignature(java.lang.String jdkSignatureAlgo)
          Returns the MessageDigester for a JDK Signature algorythm
static java.security.Signature getJdkSignature(java.lang.String jdkSignatureAlgo)
          Return a java.security.Signature.
static java.security.Signature getJdkSignature(java.lang.String jdkSignatureAlgo, java.lang.String provider)
          Return a java.security.Signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJdkSignature

public static java.security.Signature getJdkSignature(java.lang.String jdkSignatureAlgo)
Return a java.security.Signature. The required algorythm is usually generated from Algorithms:
  Algorithms.jdkSignatureName(DigestAlgoEnum.XXX, KeyEnum.XXX)
 

Parameters:
jdkSignatureAlgo - signature algorythm required in JDK format
Returns:
the Signature
Throws:
JsdsiRuntimeException - on error

getJdkSignature

public static java.security.Signature getJdkSignature(java.lang.String jdkSignatureAlgo,
                                                      java.lang.String provider)
Return a java.security.Signature. The required algorythm is usually generated from Algorithms:
  Algorithms.jdkSignatureName(DigestAlgoEnum.XXX, KeyEnum.XXX)
 

Parameters:
jdkSignatureAlgo - signature algorythm required in JDK format
provider - the Provider to use
Returns:
the Signature
Throws:
JsdsiRuntimeException - on error

getDigesterForJdkSignature

public static java.security.MessageDigest getDigesterForJdkSignature(java.lang.String jdkSignatureAlgo)
Returns the MessageDigester for a JDK Signature algorythm

Parameters:
jdkSignatureAlgo - the Signature algorythm in JDK format
Returns:
the MessageDigest to use


Copyright © 2002-2006 JSDSI. All Rights Reserved.