public class DN extends Object implements DEREncoder
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() |
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 © 2017. All rights reserved.