public class RDN extends java.lang.Object implements DEREncoder
| Modifier and Type | Field and Description |
|---|---|
private AttributeValueAssertion[] |
attributeValueAssertions
Attribute value assertions in this RDN.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
| Constructor and Description |
|---|
RDN(AttributeValueAssertion... assertions)
Creates a new RDN.
|
RDN(java.util.Collection<AttributeValueAssertion> assertions)
Creates a new RDN.
|
| Modifier and Type | Method and Description |
|---|---|
static RDN[] |
decode(java.nio.ByteBuffer encoded)
Converts bytes in the buffer to RDNs 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) |
AttributeValueAssertion.Value |
getAttributeValue(java.lang.String oid)
Returns a single attribute value for the supplied oid.
|
<T> T |
getAttributeValue(java.lang.String oid,
ValueTranscoder<T> transcoder)
Returns a single attribute value for the supplied oid.
|
AttributeValueAssertion[] |
getAttributeValueAssertions()
Returns the attribute value assertions in this RDN.
|
AttributeValueAssertion.Value[] |
getAttributeValues(java.lang.String oid)
Returns the attribute values for the supplied oid.
|
<T> T[] |
getAttributeValues(java.lang.String oid,
ValueTranscoder<T> transcoder)
Returns the attribute values decoded by the supplied transcoder.
|
int |
hashCode() |
java.lang.String |
toString() |
private static final int HASH_CODE_SEED
private final AttributeValueAssertion[] attributeValueAssertions
public RDN(java.util.Collection<AttributeValueAssertion> assertions)
assertions - in this RDNpublic RDN(AttributeValueAssertion... assertions)
assertions - in this RDNpublic AttributeValueAssertion[] getAttributeValueAssertions()
public AttributeValueAssertion.Value[] getAttributeValues(java.lang.String oid)
oid - to matchpublic AttributeValueAssertion.Value getAttributeValue(java.lang.String oid)
getAttributeValues(String).oid - to matchpublic <T> T[] getAttributeValues(java.lang.String oid,
ValueTranscoder<T> transcoder)
T - type of valueoid - to matchtranscoder - to decode the binary valuepublic <T> T getAttributeValue(java.lang.String oid,
ValueTranscoder<T> transcoder)
getAttributeValues(String, ValueTranscoder).T - type of valueoid - to matchtranscoder - to decode the binary valuepublic byte[] encode()
DEREncoderencode in interface DEREncoderpublic static RDN[] decode(java.nio.ByteBuffer encoded)
encoded - buffer containing DER-encoded data where the buffer is positioned at the tag of the RDN and the
limit is set beyond the last byte of the RDN.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