Class MechanismArrayAttribute


  • public class MechanismArrayAttribute
    extends Attribute
    Objects of this class represent a mechanism array attribute 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

      • MechanismArrayAttribute

        public MechanismArrayAttribute​(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

      • mechanismAttributeArrayValue

        public MechanismArrayAttribute mechanismAttributeArrayValue​(long[] value)
        Set the attributes of this mechanism attribute array by specifying a Mechanism[]. Null, is also valid. A call to this method sets the present flag to true.
        Parameters:
        value - The MechanismArrayAttribute value to set. May be null.
        Returns:
        a reference to this object.
      • getValue

        public long[] getValue()
        Get the mechanism attribute array value of this attribute as Mechanism[]. Null, is also possible.
        Specified by:
        getValue in class Attribute
        Returns:
        The mechanism 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.