org.webdocwf.util.smime.crypto
Class SigningProcessor

java.lang.Object
  |
  +--org.webdocwf.util.smime.crypto.SigningProcessor

public class SigningProcessor
extends java.lang.Object

SigningProcessor class is used for signing input datas acording to given signature algorithm which (can be SHA1_WITH_RSA, MD2_WITH_RSA, MD5_WITH_RSA or SHA1_WITH_DSA).


Constructor Summary
SigningProcessor()
           
 
Method Summary
static byte[] getSignature(byte[] forSigning0, java.security.PrivateKey key0, java.lang.String signAlg0)
          For creating signature values necessary information are: data for signing as byte array, type of signing algorithm, and private key for performing of asymmetric encryption.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SigningProcessor

public SigningProcessor()
Method Detail

getSignature

public static byte[] getSignature(byte[] forSigning0,
                                  java.security.PrivateKey key0,
                                  java.lang.String signAlg0)
                           throws SMIMEException
For creating signature values necessary information are: data for signing as byte array, type of signing algorithm, and private key for performing of asymmetric encryption.
Parameters:
forSigning0 - information for signing
key0 - private key (DSA or RSA depend on type of signing)
signAlg0 - type of signing algorithm (can be SHA1_WITH_RSA, MD2_WITH_RSA, MD5_WITH_RSA or SHA1_WITH_DSA).
Throws:
SMIMEException - caused by non SMIMEException which can be one of the following: InvalidKeyException, SignatureException, NoSuchProviderException, NoSuchAlgorithmException.


Copyright © 2002-2002 Together Teamlösungen. All Rights Reserved.