org.webdocwf.util.smime.cms
Class ContentTypeIdentifier

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERObjectIdentifier
              |
              +--org.webdocwf.util.smime.cms.ContentTypeIdentifier

public class ContentTypeIdentifier
extends DERObjectIdentifier

ContentTypeIdentifier class is DER encoded Content Type Identifier represented in ASN.1 notation according to RFC2630.

ContentType ::= OBJECT IDENTIFIER


Constructor Summary
ContentTypeIdentifier(int[] arrayID0)
          Array of numbers is used for construction of desired attribute DER Object Identifier.
ContentTypeIdentifier(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.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

ContentTypeIdentifier

public ContentTypeIdentifier(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.

ContentTypeIdentifier

public ContentTypeIdentifier(int[] arrayID0)
                      throws SMIMEException
Array of numbers is used for construction of desired attribute DER Object Identifier. All numbers in the array represent one number between dots in object identifier string.
Parameters:
arrayID0 - array of given 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.


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