Class MechanismAttribute


  • public class MechanismAttribute
    extends LongAttribute
    Objects of this class represent a mechanism attribute of a PKCS#11 object as specified by PKCS#11.
    Author:
    Karl Scheibelhofer (SIC), Lijun Liao (xipki)
    • Constructor Detail

      • MechanismAttribute

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

      • mechanism

        public MechanismAttribute mechanism​(Long mechanism)
        Set the mechanism value of this attribute. null, is also valid. A call to this method sets the present flag to true.
        Parameters:
        mechanism - The mechanism value to set. May be null.
        Returns:
        a reference to this object.
      • 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.