public class ByteArrayAttribute extends Attribute
ckAttribute, present, sensitive| Constructor and Description |
|---|
ByteArrayAttribute(long type)
Constructor taking the PKCS#11 type of the attribute.
|
| Modifier and Type | Method and Description |
|---|---|
ByteArrayAttribute |
bigIntValue(BigInteger value)
Set the big integer value whose unsigned byte-array representation is
the content of this attribute.
|
ByteArrayAttribute |
byteArrayValue(byte[] value)
Set the byte-array value of this attribute.
|
BigInteger |
getBigIntValue() |
BigInteger |
getSignedBigIntValue() |
byte[] |
getValue()
Get the byte-array value of this attribute.
|
protected String |
getValueString()
Get a string representation of the value of this attribute.
|
ckAttribute, getCkAttribute, getInstance, getInstance, getType, isNullValue, isPresent, isSensitive, present, sensitive, toString, toString, typepublic ByteArrayAttribute(long type)
type - The PKCS#11 type of this attribute; e.g. CKA_VALUE.public ByteArrayAttribute byteArrayValue(byte[] value)
value - The byte-array value to set. May be null.public ByteArrayAttribute bigIntValue(BigInteger value)
value - The byte-array value to set. May be null.public byte[] getValue()
public BigInteger getBigIntValue()
public BigInteger getSignedBigIntValue()
protected String getValueString()
getValueString in class AttributeCopyright © 2023. All rights reserved.