DistinguishedName
and associated classes are deprecated as of 2.0.public class LdapRdnComponent extends Object implements Comparable, Serializable
Modifier and Type | Field and Description |
---|---|
static boolean |
DONT_DECODE_VALUE
Deprecated.
|
Constructor and Description |
---|
LdapRdnComponent(String key,
String value)
Deprecated.
Constructs an LdapRdnComponent without decoding the value.
|
LdapRdnComponent(String key,
String value,
boolean decodeValue)
Deprecated.
Constructs an LdapRdnComponent, optionally decoding the value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object obj)
Deprecated.
Compare this instance to the supplied object.
|
protected String |
encodeLdap()
Deprecated.
Encode key and value to ldap.
|
String |
encodeUrl()
Deprecated.
Get a String representation of this instance for use in URLs.
|
boolean |
equals(Object obj)
Deprecated.
|
String |
getKey()
Deprecated.
Get the key (Attribute name) of this component.
|
String |
getLdapEncoded()
Deprecated.
|
String |
getValue()
Deprecated.
Get the (Attribute) value of this component.
|
int |
hashCode()
Deprecated.
|
LdapRdnComponent |
immutableLdapRdnComponent()
Deprecated.
Create an immutable copy of this instance.
|
void |
setKey(String key)
Deprecated.
Using this method changes the internal state of surrounding
DistinguishedName instance. This should be avoided.
|
void |
setValue(String value)
Deprecated.
Using this method changes the internal state of surrounding
DistinguishedName instance. This should be avoided.
|
String |
toString()
Deprecated.
|
public static final boolean DONT_DECODE_VALUE
public LdapRdnComponent(String key, String value)
key
- the Attribute name.value
- the Attribute value.public LdapRdnComponent(String key, String value, boolean decodeValue)
Depending on the value of the "key case fold" System property, the keys will be lowercased, uppercased, or preserve their original case. Default is to convert them to lowercase.
key
- the Attribute name.value
- the Attribute value.decodeValue
- if true
the value is decoded (typically
used when a DN is parsed from a String), otherwise the value is used as
specified.DistinguishedName.KEY_CASE_FOLD_PROPERTY
public String getKey()
public void setKey(String key)
key
- the key.public String getValue()
public void setValue(String value)
value
- the value.protected String encodeLdap()
public String getLdapEncoded()
public String encodeUrl()
public int compareTo(Object obj)
compareTo
in interface Comparable
obj
- the object to compare to.ClassCastException
- if the object is not possible to cast to an
LdapRdnComponent.public LdapRdnComponent immutableLdapRdnComponent()