org.webdocwf.util.smime.cms
Class SignatureValue

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DEROctetString
              |
              +--org.webdocwf.util.smime.cms.SignatureValue

public class SignatureValue
extends DEROctetString

SignatureValue class is DER encoded octet string for holding signature values represented in ASN.1 notation according to RFC2630.

SignatureValue ::= OCTET STRING


Constructor Summary
SignatureValue(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 org.webdocwf.util.smime.der.DERObject
getContentOctets, getContentPartSize, getDEREncoded, getIdentifierOctet, getLengthOctets, getLengthPartSize, getTagClassType, getTagComplexity, getTagTypeNumber, getTotalSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureValue

public SignatureValue(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 - thrown in super class constructor.


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