org.webdocwf.util.smime.cms
Class MessageDigestAttribute

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERSequencePr
              |
              +--org.webdocwf.util.smime.cms.Attribute
                    |
                    +--org.webdocwf.util.smime.cms.MessageDigestAttribute

public class MessageDigestAttribute
extends Attribute

MessageDigestAttribute is Signed Attribute and is used for creating CMS object for signed messages. It defines the type of digest used in CMS object in information about particular signing.


Constructor Summary
MessageDigestAttribute(byte[] message0, java.lang.String digestAlg0)
          Performes construction and digesting of message in the same time
 
Methods inherited from class org.webdocwf.util.smime.cms.Attribute
addContent, getDEREncoded
 
Methods inherited from class org.webdocwf.util.smime.der.DERObject
getContentOctets, getContentPartSize, 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

MessageDigestAttribute

public MessageDigestAttribute(byte[] message0,
                              java.lang.String digestAlg0)
                       throws SMIMEException
Performes construction and digesting of message in the same time
Parameters:
message0 - input massage for digest algorithm
digestAlg0 - object identifier name for digest algorithm (for example "SHA1")
Throws:
SMIMEException - caused by non SMIME exception which is NoSuchAlgorithmException if invalid digestAlg0 parameter is passed to the constructor. Also, exception could be thrown by super class constructor or by super class addContent method.


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