Class AttributeValueAssertion

  • All Implemented Interfaces:
    DEREncoder

    public class AttributeValueAssertion
    extends AbstractDERType
    implements DEREncoder
    An OID representing the type of attribute and its value.
    • Field Detail

      • HASH_CODE_SEED

        private static final int HASH_CODE_SEED
        hash code seed.
        See Also:
        Constant Field Values
      • PATH

        private static final DERPath PATH
        DER path for parsing attribute value assertion.
      • attributeOid

        private final String attributeOid
        OID of the attribute.
    • Constructor Detail

      • AttributeValueAssertion

        public AttributeValueAssertion​(String oid,
                                       AttributeValueAssertion.Value value)
        Creates a new attribute value assertion.
        Parameters:
        oid - describing the attribute value
        value - of the attribute
    • Method Detail

      • getOid

        public String getOid()
        Returns the OID.
        Returns:
        oid
      • encode

        public byte[] encode()
        Description copied from interface: DEREncoder
        Encode this object into it's DER type.
        Specified by:
        encode in interface DEREncoder
        Returns:
        DER encoded object
      • decode

        public static AttributeValueAssertion[] decode​(DERBuffer encoded)
        Converts bytes in the buffer to attribute value assertions by reading from the current position to the limit.
        Parameters:
        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.
        Returns:
        decoded bytes as attribute value assertions
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object