Package org.xipki.pkcs11.wrapper.attrs
Class MechanismAttribute
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.attrs.Attribute
-
- org.xipki.pkcs11.wrapper.attrs.LongAttribute
-
- org.xipki.pkcs11.wrapper.attrs.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)
-
-
Field Summary
-
Fields inherited from class org.xipki.pkcs11.wrapper.attrs.Attribute
ckAttribute, present, sensitive
-
-
Constructor Summary
Constructors Constructor Description MechanismAttribute(long type)Constructor taking the PKCS#11 type of the attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetValueString()Get a string representation of the value of this attribute.MechanismAttributemechanism(Long mechanism)Set the mechanism value of this attribute.-
Methods inherited from class org.xipki.pkcs11.wrapper.attrs.LongAttribute
getIntValue, getValue, longValue, toString
-
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
-
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 benull.- Returns:
- a reference to this object.
-
getValueString
protected String getValueString()
Get a string representation of the value of this attribute.- Overrides:
getValueStringin classAttribute- Returns:
- A string representation of the value of this attribute.
-
-