org.webdocwf.util.smime.cms
Class SignedAttributes

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERClassContextSpecificPr
              |
              +--org.webdocwf.util.smime.cms.SignedAttributes

public class SignedAttributes
extends DERClassContextSpecificPr

SignedAttributes class is DER encoded container for holding particular signed attributes represented in ASN.1 notation according to RFC2630.

signedAttrs [0] IMPLICIT SignedAttributes OPTIONAL

SignedAttributes ::= SET SIZE (1..MAX) OF Attribute

Attribute ::= SEQUENCE {
attrType OBJECT IDENTIFIER,
attrValues SET OF AttributeValue }

attrType ::= OBJECT IDENTIFIER

attrValues ::= SET OF AttributeValue

AttributeValue ::= ANY


Constructor Summary
SignedAttributes()
          Constructs structured DER encoded object with tag Class Context Specific
 
Method Summary
 void addSignedAttribute(byte[] content0)
          Adds DER encoded Signed attribute.
 byte[] getSignedAttribute()
          Returns DER encoded Signed attributes.
 
Methods inherited from class org.webdocwf.util.smime.der.DERClassContextSpecificPr
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

SignedAttributes

public SignedAttributes()
                 throws SMIMEException
Constructs structured DER encoded object with tag Class Context Specific
Throws:
SMIMEException - thrown in super class constructor.
Method Detail

addSignedAttribute

public void addSignedAttribute(byte[] content0)
                        throws SMIMEException
Adds DER encoded Signed attribute. This function must be performed one or more times.
Parameters:
content0 - DER encoded Signed attribute for adding
Throws:
SMIMEException - thrown in super class addContent method.

getSignedAttribute

public byte[] getSignedAttribute()
                          throws SMIMEException
Returns DER encoded Signed attributes. At least one attribute must be added before performing this function.
Returns:
Container with all aded signed attributes
Throws:
SMIMEException - if no attribute was added. Also, exception could be thrown in super class getDEREncoded method.


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