All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class iaik.asn1.structures.RDN

java.lang.Object
   |
   +----iaik.asn1.structures.RDN

public class RDN
extends Object
This class implements the ASN.1 type: RelativeDistinguishedName


Constructor Index

 o RDN()
Creates an empty RelativeDistinguishedName.
 o RDN(ASN1Object)
Creates a RelativeDistinguishedName form an ASN1Object.
 o RDN(ObjectID, String)
Creates a RelativeDistinguishedName with one element.

Method Index

 o addAVA(ObjectID, String)
Adds a AttributeValueAssertion to this RelativeDistinguishedName.
 o equals(Object)
Compares two RelativeDistinguishedNames.
 o getAVA(ObjectID)
Returns a AttributeValueAssertion from this RelativeDistinguishedName.
 o toASN1Object()
Returns the RelativeDistinguishedName as an ASN1Object.
 o toString()
Returns a string that represents the contents of this RDN.
 o toString(boolean)
Returns a string that represents the contents of this RDN.

Constructors

 o RDN
 public RDN()
Creates an empty RelativeDistinguishedName.

 o RDN
 public RDN(ObjectID oid,
            String value)
Creates a RelativeDistinguishedName with one element. Creates the object and adds one AttributeValueAssertion.

Parameters:
oid - the object ID of the attribute
the - value of the attribute
 o RDN
 public RDN(ASN1Object obj) throws CodingException
Creates a RelativeDistinguishedName form an ASN1Object.

Parameters:
the - RelativeDistinguishedName as ASN1Object
Throws: CodingException
if this ASN1Object could not be parsed

Methods

 o toASN1Object
 public ASN1Object toASN1Object()
Returns the RelativeDistinguishedName as an ASN1Object.

Returns:
the RelativeDistinguishedName as ASN1Object
 o addAVA
 public void addAVA(ObjectID oid,
                    String value)
Adds a AttributeValueAssertion to this RelativeDistinguishedName.

Parameters:
oid - the object ID of the attribute
the - value of the attribute
 o getAVA
 public String getAVA(ObjectID oid)
Returns a AttributeValueAssertion from this RelativeDistinguishedName.

Parameters:
oid - the object ID of the attribute
Returns:
the value of the desired attribute
 o equals
 public boolean equals(Object obj)
Compares two RelativeDistinguishedNames.

Parameters:
obj - the other RelativeDistinguishedName
Returns:
true, if the two RelativeDistinguishedNames are equal
Overrides:
equals in class Object
 o toString
 public String toString()
Returns a string that represents the contents of this RDN.

Returns:
the string representation
Overrides:
toString in class Object
 o toString
 public String toString(boolean detailed)
Returns a string that represents the contents of this RDN.

Returns:
the string representation

All Packages  Class Hierarchy  This Package  Previous  Next  Index