Package org.ldaptive.asn1
Class DN
java.lang.Object
org.ldaptive.asn1.DN
- All Implemented Interfaces:
DEREncoder
Deprecated.
A sequence of RDN values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
Deprecated.hash code seed.private final RDN[]
Deprecated.RDNs in this RDN sequence. -
Constructor Summary
ConstructorsConstructorDescriptionDN
(Collection<RDN> names) Deprecated.Creates a new DN.Deprecated.Creates a new DN. -
Method Summary
Modifier and TypeMethodDescriptionstatic DN
Deprecated.Converts bytes in the buffer to a DN by reading from the current position to the limit.byte[]
encode()
Deprecated.Encode this object into it's DER type.boolean
Deprecated.RDN[]
getRDNs()
Deprecated.Returns the RDNs in this DN.int
hashCode()
Deprecated.toString()
Deprecated.
-
Field Details
-
HASH_CODE_SEED
private static final int HASH_CODE_SEEDDeprecated.hash code seed.- See Also:
-
rdns
Deprecated.RDNs in this RDN sequence.
-
-
Constructor Details
-
DN
Deprecated.Creates a new DN.- Parameters:
names
- RDNs in this sequence
-
DN
Deprecated.Creates a new DN.- Parameters:
names
- RDNs in this sequence
-
-
Method Details
-
getRDNs
Deprecated.Returns the RDNs in this DN.- Returns:
- RDNs
-
encode
public byte[] encode()Deprecated.Description copied from interface:DEREncoder
Encode this object into it's DER type.- Specified by:
encode
in interfaceDEREncoder
- Returns:
- DER encoded object
-
decode
Deprecated.Converts bytes in the buffer to a DN by reading from the current position to the limit.- Parameters:
encoded
- buffer containing DER-encoded data where the buffer is positioned at the tag of the DN and the limit is set beyond the last byte of DN data.- Returns:
- decoded bytes as a DN
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-
Dn