org.webdocwf.util.smime.cms
Class RelativeDistinguishedName

java.lang.Object
  |
  +--org.webdocwf.util.smime.der.DERObject
        |
        +--org.webdocwf.util.smime.der.DERSetPr
              |
              +--org.webdocwf.util.smime.cms.RelativeDistinguishedName

public class RelativeDistinguishedName
extends DERSetPr

RelativeDistinguishedName class is DER encoded container represented in ASN.1 notation according to RFC2630. It is used to hold just one information about owner or issuer of certificate (it can be name or country etc.). Collection of RelativeDistinguishedName builds IssuerName. Details about ASN.1 notation are described in class IssuerAndSerialNumber. RelativeDistinguishedName class is used only by addParticularRelativeDN method of IssuerAndSerialNumber.


Constructor Summary
RelativeDistinguishedName()
          Constructs empty RelativeDistinguishedName object.
RelativeDistinguishedName(int[] arrayID0, java.lang.String value0)
          Constructs specific RelativeDistinguishedName object according to arrayID0.
RelativeDistinguishedName(java.lang.String id0, java.lang.String typeConstruction0, java.lang.String value0)
          Constructs specific RelativeDistinguishedName object according to id0.
 
Method Summary
 void setAttributeTypeAndValue(int[] arrayID0, java.lang.String value0)
          Sets type and value for particular attribute.
 void setAttributeTypeAndValue(java.lang.String id0, java.lang.String typeConstruction0, java.lang.String value0)
          Sets type and value for particular attribute.
 
Methods inherited from class org.webdocwf.util.smime.der.DERSetPr
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

RelativeDistinguishedName

public RelativeDistinguishedName()
                          throws SMIMEException
Constructs empty RelativeDistinguishedName object.
Throws:
SMIMEException - thrown in super class constructor.

RelativeDistinguishedName

public RelativeDistinguishedName(java.lang.String id0,
                                 java.lang.String typeConstruction0,
                                 java.lang.String value0)
                          throws SMIMEException
Constructs specific RelativeDistinguishedName object according to id0. 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: "2.5.4.6"). In case of NAME_STRING, id0 definition is name of object identifier (example: "COUNTRYNAME").
Parameters:
id0 - define Object Identifier in representation determined by second parameter - typeConstruction0.
typeConstruction0 - can take values DOT_SEPARATED_ARRAY and NAME_STRING
value0 - value of attribute of corresponding type defined by id0 and typeConstruction0
Throws:
SMIMEException - if wrong type of parameters are passed to the constructor. Also, it can be thrown by super class constructor.

RelativeDistinguishedName

public RelativeDistinguishedName(int[] arrayID0,
                                 java.lang.String value0)
                          throws SMIMEException
Constructs specific RelativeDistinguishedName object according to arrayID0. Array of numbers (arrayID0) is used for constructing object identifier. Every number in array represent one number between dots in object identifier string.
Parameters:
arrayID0 - array of given numbers (example: for COUNTRYNAME object identifier those numbers are 2, 5, 4 and 6)
value0 - value of corresponding attribute defined by id0 and typeConstruction0
Throws:
SMIMEException - if wrong type of parameters are passed to the constructor. Also, it can be thrown by super class constructor.
Method Detail

setAttributeTypeAndValue

public void setAttributeTypeAndValue(java.lang.String id0,
                                     java.lang.String typeConstruction0,
                                     java.lang.String value0)
                              throws SMIMEException
Sets type and value for particular attribute. For details about parameters look at second type of constructor.
Parameters:
id0 - same as in the second type of constructor.
typeConstruction0 - same as in the second type of constructor.
value0 - same as in the second type of constructor.
Throws:
SMIMEException - if method is performed twice for same object or if object wasn't constructed with the simplest constructor. Also, it can be thrown from super class addContent method.

setAttributeTypeAndValue

public void setAttributeTypeAndValue(int[] arrayID0,
                                     java.lang.String value0)
                              throws SMIMEException
Sets type and value for particular attribute. For details about parameters look at third type of constructor.
Parameters:
arrayID0 - same as in the third type of constructor.
value0 - same as in the third type of constructor.
Throws:
SMIMEException - if method is performed twice for same object or if object wasn't constructed with the simplest constructor. Also, it can be thrown from super class addContent method.


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