public class DN extends 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(Collection<RDN> names)
Creates a new DN.
|
DN(RDN... names)
Creates a new DN.
|
Modifier and Type | Method and Description |
---|---|
static DN |
decode(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(Object o) |
RDN[] |
getRDNs()
Returns the RDNs in this DN.
|
int |
hashCode() |
String |
toString() |
private static final int HASH_CODE_SEED
private final RDN[] rdns
public DN(Collection<RDN> names)
names
- RDNs in this sequencepublic DN(RDN... names)
names
- RDNs in this sequencepublic RDN[] getRDNs()
public byte[] encode()
DEREncoder
encode
in interface DEREncoder
public static DN decode(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.Copyright © 2003-2019 Virginia Tech. All Rights Reserved.