Class AttributeArrayAttribute


  • public class AttributeArrayAttribute
    extends Attribute
    Objects of this class represent an attribute array of a PKCS#11 object as specified by PKCS#11. This attribute is available since cryptoki version 2.20.
    Author:
    Birgit Haas (SIC), Lijun Liao (xipki)
    • Constructor Detail

      • AttributeArrayAttribute

        public AttributeArrayAttribute​(long type)
        Constructor taking the PKCS#11 type of the attribute.
        Parameters:
        type - The PKCS#11 type of this attribute; e.g. CKA_VALUE.
    • Method Detail

      • attributeArrayValue

        public AttributeArrayAttribute attributeArrayValue​(AttributeVector value)
        Set the attributes of this attribute array by specifying an AttributeVector. Null, is also valid. A call to this method sets the present flag to true.
        Parameters:
        value - The AttributeArray value to set. May be null.
        Returns:
        a reference to this object.
      • getValue

        public AttributeVector getValue()
        Get the attribute array value of this attribute. Null, is also possible.
        Specified by:
        getValue in class Attribute
        Returns:
        The attribute array value of this attribute or null.
      • getValueString

        protected String getValueString()
        Get a string representation of the value of this attribute.
        Overrides:
        getValueString in class Attribute
        Returns:
        A string representation of the value of this attribute.