public class LDAPRDN
extends java.lang.Object
Each DN component consists of an attribute type and a value. For example, in "o=Airius.com", the attribute type is "o" and the value is "Airius.com".
You can use objects of this class to add components to an
existing DN object.
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
deEscapeRDNValue(java.lang.String rdn_value) |
boolean |
equals(LDAPRDN rdn)
Determines if the current DN component is equal to the specified
DN component.
|
java.lang.String |
getType()
Returns the attribute type of the DN component.
|
java.lang.String |
getValue()
Returns the value of the DN component.
|
int |
hashCode() |
boolean |
isRDN() |
static boolean |
isRDN(java.lang.String rdn)
Determines if the specified string is a distinguished name component.
|
static java.lang.String |
toEscapeRDNValue(java.lang.String value) |
java.lang.String |
toNormalizedString()
Retrieves a normalized string representation of this RDN.
|
java.lang.String |
toString()
Returns the string representation of the DN component.
|
public java.lang.String getType()
public java.lang.String getValue()
public static java.lang.String toEscapeRDNValue(java.lang.String value)
public static java.lang.String deEscapeRDNValue(java.lang.String rdn_value)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toNormalizedString()
public static boolean isRDN(java.lang.String rdn)
dn - the string to checktrue if the string is a distinguished name component.public boolean isRDN()
public boolean equals(LDAPRDN rdn)
rdn - the DN component to compare against the
current DN component.true if the two DN components are equal.public int hashCode()
hashCode in class java.lang.Object