Package org.springframework.ldap.core
Class LdapRdnComponent
java.lang.Object
org.springframework.ldap.core.LdapRdnComponent
- All Implemented Interfaces:
Serializable
,Comparable
Deprecated.
Represents part of an LdapRdn. As specified in RFC2253 an LdapRdn may be composed of
several attributes, separated by "+". An LdapRdnComponent represents one of
these attributes.
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionLdapRdnComponent
(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. -
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Compare this instance to the supplied object.protected String
Deprecated.Encode key and value to ldap.Deprecated.Get a String representation of this instance for use in URLs.boolean
Deprecated.getKey()
Deprecated.Get the key (Attribute name) of this component.Deprecated.getValue()
Deprecated.Get the (Attribute) value of this component.int
hashCode()
Deprecated.Deprecated.Create an immutable copy of this instance.void
Deprecated.Using this method changes the internal state of surrounding DistinguishedName instance.void
Deprecated.Using this method changes the internal state of surrounding DistinguishedName instance.toString()
Deprecated.
-
Field Details
-
DONT_DECODE_VALUE
public static final boolean DONT_DECODE_VALUEDeprecated.- See Also:
-
-
Constructor Details
-
LdapRdnComponent
Deprecated.Constructs an LdapRdnComponent without decoding the value.- Parameters:
key
- the Attribute name.value
- the Attribute value.
-
LdapRdnComponent
Deprecated.Constructs an LdapRdnComponent, optionally decoding the value.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.
- Parameters:
key
- the Attribute name.value
- the Attribute value.decodeValue
- iftrue
the value is decoded (typically used when a DN is parsed from a String), otherwise the value is used as specified.- See Also:
-
-
Method Details
-
getKey
Deprecated.Get the key (Attribute name) of this component.- Returns:
- the key.
-
setKey
Deprecated.Using this method changes the internal state of surrounding DistinguishedName instance. This should be avoided.Set the key (Attribute name) of this component.- Parameters:
key
- the key.
-
getValue
Deprecated.Get the (Attribute) value of this component.- Returns:
- the value.
-
setValue
Deprecated.Using this method changes the internal state of surrounding DistinguishedName instance. This should be avoided.Set the (Attribute) value of this component.- Parameters:
value
- the value.
-
encodeLdap
Deprecated.Encode key and value to ldap.- Returns:
- Properly ldap escaped rdn.
-
getLdapEncoded
Deprecated.- Returns:
- The LdapRdn as a string where the value is LDAP-encoded.
-
encodeUrl
Deprecated.Get a String representation of this instance for use in URLs.- Returns:
- a properly URL encoded representation of this instancs.
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated. -
compareTo
Deprecated.Compare this instance to the supplied object.- Specified by:
compareTo
in interfaceComparable
- Parameters:
obj
- the object to compare to.- Throws:
ClassCastException
- if the object is not possible to cast to an LdapRdnComponent.
-
immutableLdapRdnComponent
Deprecated.Create an immutable copy of this instance. It will not be possible to modify the key or the value of the returned instance.- Returns:
- an immutable copy of this instance.
- Since:
- 1.3
-
DistinguishedName
and associated classes are deprecated as of 2.0.