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