public class CK_ATTRIBUTE
extends java.lang.Object
Further information is provided in the PKCS#11 standard and the SDK Reference Guide.
CKA| Modifier and Type | Field and Description |
|---|---|
java.lang.Object |
pValue
Value of this attribute.
|
CK_ATTRIBUTE_TYPE |
type
Type of this attribute.
|
long |
valueLen
Amount of data referenced by pValue.
|
| Constructor and Description |
|---|
CK_ATTRIBUTE()
Values initialised to 0 or null.
|
CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type,
long value)
Intercept primitive long constant being passed in to avoid JVM caching issue
see:
Long::valueOf
public static Long valueOf?(long l)
Returns a Long instance representing the specified long value.
|
CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type,
java.lang.Long value)
Intercept Long being passed in to avoid JVM caching issue
(see above)
|
CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type,
java.lang.Object pValue)
The type of the pValue is examined, and if supported, then the
valueLen is determined.
|
CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type,
java.lang.Object pValue,
long valueLen)
Values initialised as specified.
|
| Modifier and Type | Method and Description |
|---|---|
static long |
getAttributeValueSize(java.lang.Object pValue)
Determine the size in bytes of the attribute value, if supported.
|
static boolean |
updateAttribute(CK_ATTRIBUTE attr,
CK_ATTRIBUTE_TYPE type,
java.lang.Object pValue)
Updates the specified attribute, include type, value and length.
|
public CK_ATTRIBUTE_TYPE type
CKApublic java.lang.Object pValue
public long valueLen
public CK_ATTRIBUTE()
public CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type, java.lang.Object pValue, long valueLen)
type - attribute typepValue - attribute valuevalueLen - length of attribute valuepublic CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type, java.lang.Object pValue)
type - attribute typepValue - attribute valuepublic CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type, long value)
type - value - public CK_ATTRIBUTE(CK_ATTRIBUTE_TYPE type, java.lang.Long value)
type - value - public static long getAttributeValueSize(java.lang.Object pValue)
pValue - valuepublic static boolean updateAttribute(CK_ATTRIBUTE attr, CK_ATTRIBUTE_TYPE type, java.lang.Object pValue)
attr - the attributetype - the attribute typepValue - the attribute value
The type of the pValue is examined, and if supported, then the
valueLen is determined.Copyright (c) 2025 Thales Group. All rights reserved.