org.webdocwf.util.smime.der
Class DERObjectIdentifier

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERObjectIdentifier
Direct Known Subclasses:
ContentTypeIdentifier

public class DERObjectIdentifier
extends DERObject

DERObjectIdentifier is primitive type of DER encoded object which represents Object Identifier type in ASN.1 notation. A value (distinguishable from all other such values) which is associated with an information object. For example object identifier for RSA algorithm is 1.2.840.113549.1.1.1. Implemented object identifiers are stored in class IdentifierStorage.


Constructor Summary
DERObjectIdentifier(int[] arrayID0)
          Array of numbers is used for construction of DERObjectIdentifier.
DERObjectIdentifier(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

DERObjectIdentifier

public DERObjectIdentifier(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.1.1"). In the case of NAME_STRING, id0 definition is name of object identifier (example: "RSA").
Parameters:
id0 - defines Object Identifier in representation determined by the second parameter - typeConstruction0.
typeConstruction0 - can take values DOT_SEPARATED_ARRAY and NAME_STRING
Throws:
SMIMEException - if wrong type of parameters are passed to the constructor. Also, exception could be thrown in super class constructor or in super class addContent method.

DERObjectIdentifier

public DERObjectIdentifier(int[] arrayID0)
                    throws SMIMEException
Array of numbers is used for construction of DERObjectIdentifier. Every number in array represents one number between dots in the object identifier string.
Parameters:
arrayID0 - array of given numbers (example: for RSA algorithm those numbers are 1, 2, 840, 113549, 1, 1, and 1).
Throws:
SMIMEException - if wrong type of parameters are passed to the constructor. Also, exception could be thrown in super class constructor or in super class addContent method.


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