org.webdocwf.util.smime.cms
Class SignedData

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

public class SignedData
extends DERSequencePr

SignedData is DER encoded container for information represented in ASN.1 notation according to RFC2630, used for construction CMS objects of signed messages.

SignedData ::= SEQUENCE {
version CMSVersion,
digestAlgorithms DigestAlgorithmIdentifiers,
encapContentInfo EncapsulatedContentInfo,
certificates [0] IMPLICIT CertificateSet OPTIONAL,
crls [1] IMPLICIT CertificateRevocationLists OPTIONAL,
signerInfos SignerInfos }


Constructor Summary
SignedData()
          Constructs an empty Signed Data
 
Method Summary
 void addCertificate(byte[] cert0)
          Adds DER encoded Certificate container with one or more X509 certificates
 void addCMSVersion(byte[] ver0)
          Adds DER encoded CMS Version
 void addDigestAlgorithm(byte[] digAlg0)
          Adds DER encoded Digest Algorithm Identifier
 void addEncapsulatedContentInfo(byte[] encCont0)
          Adds DER encoded Encapsulated Content Info
 void addSignerInfos(byte[] info0)
          Adds DER encoded Signer Infos
 
Methods inherited from class org.webdocwf.util.smime.der.DERSequencePr
addContent
 
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

SignedData

public SignedData()
           throws SMIMEException
Constructs an empty Signed Data
Throws:
SMIMEException - thrown in super class constructor.
Method Detail

addCMSVersion

public void addCMSVersion(byte[] ver0)
                   throws SMIMEException
Adds DER encoded CMS Version
Parameters:
ver0 - DER encoded CMS version represented as byte array
Throws:
SMIMEException - if order of adding components is wrong. Also, exception could be thrown in super class addContent method.

addDigestAlgorithm

public void addDigestAlgorithm(byte[] digAlg0)
                        throws SMIMEException
Adds DER encoded Digest Algorithm Identifier
Parameters:
digAlg0 - DER encoded Digest Algorithm Identifier as byte array
Throws:
SMIMEException - if order of adding components is wrong. Also, exception could be thrown in super class addContent method.

addEncapsulatedContentInfo

public void addEncapsulatedContentInfo(byte[] encCont0)
                                throws SMIMEException
Adds DER encoded Encapsulated Content Info
Parameters:
encCont0 - DER encoded Encapsulated Content Info as byte array
Throws:
SMIMEException - if order of adding components is wrong. Also, exception could be thrown in super class addContent method.

addCertificate

public void addCertificate(byte[] cert0)
                    throws SMIMEException
Adds DER encoded Certificate container with one or more X509 certificates
Parameters:
cert0 - DER encoded Certificate container
Throws:
SMIMEException - if order of adding components is wrong. Also, exception could be thrown in super class addContent method.

addSignerInfos

public void addSignerInfos(byte[] info0)
                    throws SMIMEException
Adds DER encoded Signer Infos
Parameters:
info0 - DER encoded Signer Infos
Throws:
SMIMEException - if order of adding components is wrong. Also, exception could be thrown in super class addContent method.


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