Package org.xipki.pkcs11.wrapper.attrs
Class DateAttribute
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.attrs.Attribute
-
- org.xipki.pkcs11.wrapper.attrs.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)
-
-
Field Summary
-
Fields inherited from class org.xipki.pkcs11.wrapper.attrs.Attribute
ckAttribute, present, sensitive
-
-
Constructor Summary
Constructors Constructor Description DateAttribute(long type)Constructor taking the PKCS#11 type of the attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DateAttributedateValue(Date value)Set the date value of this attribute.DategetValue()Get the date value of this attribute.protected StringgetValueString()Get a string representation of the value of this attribute.-
Methods inherited from class org.xipki.pkcs11.wrapper.attrs.Attribute
ckAttribute, getCkAttribute, getInstance, getInstance, getType, isNullValue, isPresent, isSensitive, present, sensitive, toString, toString, type
-
-
-
-
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.
-
getValueString
protected String getValueString()
Description copied from class:AttributeGet a string representation of the value of this attribute.- Overrides:
getValueStringin classAttribute- Returns:
- A string representation of the value of this attribute.
-
-