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
-
RDN()
- Creates an empty RelativeDistinguishedName.
-
RDN(ASN1Object)
- Creates a RelativeDistinguishedName form an ASN1Object.
-
RDN(ObjectID, String)
- Creates a RelativeDistinguishedName with one element.
-
addAVA(ObjectID, String)
- Adds a AttributeValueAssertion to this RelativeDistinguishedName.
-
equals(Object)
- Compares two RelativeDistinguishedNames.
-
getAVA(ObjectID)
- Returns a AttributeValueAssertion from this RelativeDistinguishedName.
-
toASN1Object()
- Returns the RelativeDistinguishedName as an ASN1Object.
-
toString()
- Returns a string that represents the contents of this RDN.
-
toString(boolean)
- Returns a string that represents the contents of this RDN.
RDN
public RDN()
- Creates an empty RelativeDistinguishedName.
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
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
toASN1Object
public ASN1Object toASN1Object()
- Returns the RelativeDistinguishedName as an ASN1Object.
- Returns:
- the RelativeDistinguishedName as ASN1Object
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
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
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
toString
public String toString()
- Returns a string that represents the contents of this RDN.
- Returns:
- the string representation
- Overrides:
- toString in class Object
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