org.webdocwf.util.smime.cms
Class ContentTypeAttribute

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.ContentTypeAttribute

public class ContentTypeAttribute
extends Attribute

Content Type Attribute is Signed Attribute and is used for creating CMS objects for signed messages. It defines type of content (message) used in CMS objects in information about particular signing.


Constructor Summary
ContentTypeAttribute(int[] arrayID0)
          Array of numbers is used for construction of desired attribute DER Object Identifier.
ContentTypeAttribute(java.lang.String id0, java.lang.String typeConstruction0)
          This constructor has two different forms, depend on parameter typeConstruction0, which can be: DOT_SEPARATED_ARRAY or NAME_STRING.
 
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

ContentTypeAttribute

public ContentTypeAttribute(java.lang.String id0,
                            java.lang.String typeConstruction0)
                     throws SMIMEException
This constructor has two different forms, depend on parameter typeConstruction0, which can be: DOT_SEPARATED_ARRAY or NAME_STRING. If typeConstruction0 parameter is DOT_SEPARATED_ARRAY then id0 definition is represented by numbers separated with dots (example: "1.2.840.113549.1.7.1"). In case of NAME_STRING, id0 definition is name of object identifier for content attribute (example: "ID_DATA").
Parameters:
id0 - defines Object Identifier in representation determined by second parameter - typeConstruction0.
typeOfAttribute0 - can take values DOT_SEPARATED_ARRAY and NAME_STRING
Throws:
SMIMEException - if wrong type of parameters are passed to the constructor. Also, it can be thrown from super class constructor or its addContent method.

ContentTypeAttribute

public ContentTypeAttribute(int[] arrayID0)
                     throws SMIMEException
Array of numbers is used for construction of desired attribute DER Object Identifier. All numbers in array represent one number between dots in object identifier string.
Parameters:
arrayID0 - is array of defined numbers (example: for ID_DATA attributes, numbers are 1, 2, 840, 113549, 1, 7 and 1)
Throws:
SMIMEException - if wrong type of parameters are passed to the constructor. Also, it can be thrown from super class constructor or its addContent method.


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