XCMS Toolkit

com.cms.crypto
Class SignatureAlgorithmFactory

java.lang.Object
  extended by com.cms.crypto.SignatureAlgorithmFactory

public class SignatureAlgorithmFactory
extends java.lang.Object

Resolves ASN.1 OBJECT IDENTIFIER based signature algorithm identifiers into Java Signature algorithms.

Version:
1.00 - 2006/01/24
Author:
support@phillipgriffin.com

Method Summary
 java.security.Signature createSignature(SignatureAlgorithmIdentifier id)
          Return a Signature algorithm specified by an algorithm identifier.
static SignatureAlgorithmFactory getInstance()
          Creates then returns an instance of a new SignatureAlgorithmFactory object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static SignatureAlgorithmFactory getInstance()
Creates then returns an instance of a new SignatureAlgorithmFactory object

Returns:
null or a new SignatureAlgorithmFactory object

createSignature

public java.security.Signature createSignature(SignatureAlgorithmIdentifier id)
                                        throws java.security.NoSuchAlgorithmException
Return a Signature algorithm specified by an algorithm identifier.

Parameters:
id - the id of the algorithm that should be returned.
Returns:
a Signature algorithm ready for signing or verifying digital signatures.
Throws:
java.security.NoSuchAlgorithmException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.