Package org.xipki.pkcs11.wrapper.attrs
Class MechanismArrayAttribute
- java.lang.Object
-
- org.xipki.pkcs11.wrapper.attrs.Attribute
-
- org.xipki.pkcs11.wrapper.attrs.MechanismArrayAttribute
-
public class MechanismArrayAttribute extends Attribute
Objects of this class represent a mechanism array attribute of a PKCS#11 object as specified by PKCS#11. This attribute is available since cryptoki version 2.20.- Author:
- Birgit Haas (SIC), Lijun Liao (xipki)
-
-
Field Summary
-
Fields inherited from class org.xipki.pkcs11.wrapper.attrs.Attribute
ckAttribute, present, sensitive
-
-
Constructor Summary
Constructors Constructor Description MechanismArrayAttribute(long type)Constructor taking the PKCS#11 type of the attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]getValue()Get the mechanism attribute array value of this attribute as Mechanism[].protected StringgetValueString()Get a string representation of the value of this attribute.MechanismArrayAttributemechanismAttributeArrayValue(long[] value)Set the attributes of this mechanism attribute array by specifying a Mechanism[].-
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
-
mechanismAttributeArrayValue
public MechanismArrayAttribute mechanismAttributeArrayValue(long[] value)
Set the attributes of this mechanism attribute array by specifying a Mechanism[]. Null, is also valid. A call to this method sets the present flag to true.- Parameters:
value- The MechanismArrayAttribute value to set. May be null.- Returns:
- a reference to this object.
-
getValue
public long[] getValue()
Get the mechanism attribute array value of this attribute as Mechanism[]. Null, is also possible.
-
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.
-
-