edu.vt.middleware.crypt.x509.types
Class RelativeDistinguishedName

java.lang.Object
  extended by edu.vt.middleware.crypt.x509.types.AbstractList<AttributeTypeAndValue>
      extended by edu.vt.middleware.crypt.x509.types.RelativeDistinguishedName
All Implemented Interfaces:
List<AttributeTypeAndValue>

public class RelativeDistinguishedName
extends AbstractList<AttributeTypeAndValue>

Representation of RelativeDistinguishedName type described in section 2 of RFC 2253.

Version:
$Revision: 2744 $
Author:
Middleware Services

Field Summary
static char SEPARATOR_CHAR
          Separator character between AttributeTypeAndValue items making up RDN.
 
Fields inherited from class edu.vt.middleware.crypt.x509.types.AbstractList
items
 
Constructor Summary
RelativeDistinguishedName(AttributeTypeAndValue value)
          Creates a new instance with a single value.
RelativeDistinguishedName(AttributeTypeAndValue[] arrayOfValues)
          Creates a new instance with the given array of values.
RelativeDistinguishedName(List<AttributeTypeAndValue> listOfValues)
          Creates a new instance with the given list of values.
 
Method Summary
static RelativeDistinguishedName fromASN1Set(org.bouncycastle.asn1.ASN1Set set)
          Creates a new instance from an ASN.1 SET of SEQUENCE representing the AttributeTypeAndValue type of section 2 of RFC 2253.
 String toString()
          Follows the guidelines of RFC 2253 section 2.2 for producing the string representation of the RelativeDistinguishedName type.
 
Methods inherited from class edu.vt.middleware.crypt.x509.types.AbstractList
equals, getItems, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR_CHAR

public static final char SEPARATOR_CHAR
Separator character between AttributeTypeAndValue items making up RDN.

See Also:
Constant Field Values
Constructor Detail

RelativeDistinguishedName

public RelativeDistinguishedName(List<AttributeTypeAndValue> listOfValues)
Creates a new instance with the given list of values.

Parameters:
listOfValues - List of values for the RDN.

RelativeDistinguishedName

public RelativeDistinguishedName(AttributeTypeAndValue[] arrayOfValues)
Creates a new instance with the given array of values.

Parameters:
arrayOfValues - Array of values for the RDN.

RelativeDistinguishedName

public RelativeDistinguishedName(AttributeTypeAndValue value)
Creates a new instance with a single value.

Parameters:
value - The sole value of the RDN.
Method Detail

toString

public String toString()
Follows the guidelines of RFC 2253 section 2.2 for producing the string representation of the RelativeDistinguishedName type.

Overrides:
toString in class AbstractList<AttributeTypeAndValue>
Returns:
String representation of RDN.

fromASN1Set

public static RelativeDistinguishedName fromASN1Set(org.bouncycastle.asn1.ASN1Set set)
Creates a new instance from an ASN.1 SET of SEQUENCE representing the AttributeTypeAndValue type of section 2 of RFC 2253.

Parameters:
set - Set from which to create new RDN instance.
Returns:
New RDN from encoded data.


Copyright © 2003-2013 Virginia Tech. All Rights Reserved.