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 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(String oid,
AttributeValueAssertion.Value value)
Creates a new attribute value assertion.
|
Modifier and Type | Method and Description |
---|---|
static AttributeValueAssertion[] |
decode(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(Object o) |
String |
getOid()
Returns the OID.
|
AttributeValueAssertion.Value |
getValue()
Returns the tag and value of the attribute.
|
int |
hashCode() |
String |
toString() |
encode, readBuffer
private static final int HASH_CODE_SEED
private final String attributeOid
private final AttributeValueAssertion.Value attributeValue
public AttributeValueAssertion(String oid, AttributeValueAssertion.Value value)
oid
- describing the attribute valuevalue
- of the attributepublic String getOid()
public AttributeValueAssertion.Value getValue()
public byte[] encode()
DEREncoder
encode
in interface DEREncoder
public static AttributeValueAssertion[] decode(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.Copyright © 2003-2019 Virginia Tech. All Rights Reserved.