public class DN extends java.lang.Object implements DEREncoder
| Modifier and Type | Field and Description |
|---|---|
private static int |
HASH_CODE_SEED
hash code seed.
|
private RDN[] |
rdns
RDNs in this RDN sequence.
|
| Constructor and Description |
|---|
DN(java.util.Collection<RDN> names)
Creates a new DN.
|
DN(RDN... names)
Creates a new DN.
|
| Modifier and Type | Method and Description |
|---|---|
static DN |
decode(java.nio.ByteBuffer encoded)
Converts bytes in the buffer to a DN by reading from the current position to the limit.
|
byte[] |
encode()
Encode this object into it's DER type.
|
boolean |
equals(java.lang.Object o) |
RDN[] |
getRDNs()
Returns the RDNs in this DN.
|
int |
hashCode() |
java.lang.String |
toString() |
private static final int HASH_CODE_SEED
private final RDN[] rdns
public DN(java.util.Collection<RDN> names)
names - RDNs in this sequencepublic DN(RDN... names)
names - RDNs in this sequencepublic RDN[] getRDNs()
public byte[] encode()
DEREncoderencode in interface DEREncoderpublic static DN decode(java.nio.ByteBuffer encoded)
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.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object