Class DateAttribute


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

      • DateAttribute

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

      • dateValue

        public DateAttribute dateValue​(Date value)
        Set the date value of this attribute. Null, is also valid. A call to this method sets the present flag to true.
        Parameters:
        value - The date value to set. May be null.
        Returns:
        a reference to this object.
      • getValue

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

        protected String getValueString()
        Description copied from class: Attribute
        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.