public class AttributeValueAssertion extends AbstractDERType implements DEREncoder
| Modifier and Type | Class and Description |
|---|---|
static class |
AttributeValueAssertion.Value
Class to represent the tag and value.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
attributeOid
OID of the attribute.
|
private AttributeValueAssertion.Value |
attributeValue
Tag and value of the attribute.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
| Constructor and Description |
|---|
AttributeValueAssertion(java.lang.String oid,
AttributeValueAssertion.Value value)
Creates a new attribute value assertion.
|
| Modifier and Type | Method and Description |
|---|---|
static AttributeValueAssertion[] |
decode(java.nio.ByteBuffer encoded)
Converts bytes in the buffer to attribute value assertions 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) |
java.lang.String |
getOid()
Returns the OID.
|
AttributeValueAssertion.Value |
getValue()
Returns the tag and value of the attribute.
|
int |
hashCode() |
java.lang.String |
toString() |
encode, readBufferprivate static final int HASH_CODE_SEED
private final java.lang.String attributeOid
private final AttributeValueAssertion.Value attributeValue
public AttributeValueAssertion(java.lang.String oid,
AttributeValueAssertion.Value value)
oid - describing the attribute valuevalue - of the attributepublic java.lang.String getOid()
public AttributeValueAssertion.Value getValue()
public byte[] encode()
DEREncoderencode in interface DEREncoderpublic static AttributeValueAssertion[] decode(java.nio.ByteBuffer encoded)
encoded - buffer containing DER-encoded data where the buffer is positioned at the tag of the oid and the
limit is set beyond the last byte of attribute value 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