Package org.xipki.pkcs11.wrapper.attrs
Class BooleanAttribute
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.attrs.Attribute
-
- org.xipki.pkcs11.wrapper.attrs.BooleanAttribute
-
public class BooleanAttribute extends Attribute
Objects of this class represent a boolean 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 BooleanAttribute(long type)Constructor taking the PKCS#11 type of the attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanAttributebooleanValue(Boolean value)Set the boolean value of this attribute.BooleangetValue()Get the boolean 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
-
booleanValue
public BooleanAttribute booleanValue(Boolean value)
Set the boolean value of this attribute. Null, is also valid. A call to this method sets the present flag to true.- Parameters:
value- The boolean value to set. May be null.- Returns:
- a reference to this object.
-
getValue
public Boolean getValue()
Get the boolean 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.
-
-