CKA

public class CKA

CKA_? константы и обертка для структуры CK_ATTRIBUTE.

Поля

AC_ISSUER

public static final long AC_ISSUER

ALLOWED_MECHANISMS

public static final long ALLOWED_MECHANISMS

ALWAYS_AUTHENTICATE

public static final long ALWAYS_AUTHENTICATE

ALWAYS_SENSITIVE

public static final long ALWAYS_SENSITIVE

APPLICATION

public static final long APPLICATION

ATTR_TYPES

public static final long ATTR_TYPES

AUTH_PIN_FLAGS

public static final long AUTH_PIN_FLAGS

BASE

public static final long BASE

BITS_PER_PIXEL

public static final long BITS_PER_PIXEL

CERTIFICATE_CATEGORY

public static final long CERTIFICATE_CATEGORY

CERTIFICATE_TYPE

public static final long CERTIFICATE_TYPE

CHAR_COLUMNS

public static final long CHAR_COLUMNS

CHAR_ROWS

public static final long CHAR_ROWS

CHAR_SETS

public static final long CHAR_SETS

CHECK_VALUE

public static final long CHECK_VALUE

CKF_ARRAY_ATTRIBUTE

public static final long CKF_ARRAY_ATTRIBUTE

CK_VENDOR_PKCS11_RU_TEAM_TC26

public static final long CK_VENDOR_PKCS11_RU_TEAM_TC26

CLASS

public static final long CLASS

COEFFICIENT

public static final long COEFFICIENT

COLOR

public static final long COLOR

DECRYPT

public static final long DECRYPT

DEFAULT_CMS_ATTRIBUTES

public static final long DEFAULT_CMS_ATTRIBUTES

DERIVE

public static final long DERIVE

EC_PARAMS

public static final long EC_PARAMS

EC_POINT

public static final long EC_POINT

ENCODING_METHODS

public static final long ENCODING_METHODS

ENCRYPT

public static final long ENCRYPT

END_DATE

public static final long END_DATE

EXPONENT_1

public static final long EXPONENT_1

EXPONENT_2

public static final long EXPONENT_2

EXTRACTABLE

public static final long EXTRACTABLE

GOST28147_PARAMS

public static final long GOST28147_PARAMS

GOSTR3410_256PARAMS

public static final long GOSTR3410_256PARAMS

GOSTR3410_512PARAMS

public static final long GOSTR3410_512PARAMS

GOSTR3410_PARAMS

public static final long GOSTR3410_PARAMS

GOSTR3411_PARAMS

public static final long GOSTR3411_PARAMS

HASH_OF_ISSUER_PUBLIC_KEY

public static final long HASH_OF_ISSUER_PUBLIC_KEY

HASH_OF_SUBJECT_PUBLIC_KEY

public static final long HASH_OF_SUBJECT_PUBLIC_KEY

HAS_RESET

public static final long HAS_RESET

HW_FEATURE_TYPE

public static final long HW_FEATURE_TYPE

ID

public static final long ID

ISSUER

public static final long ISSUER

JAVA_MIDP_SECURITY_DOMAIN

public static final long JAVA_MIDP_SECURITY_DOMAIN

KEY_TYPE

public static final long KEY_TYPE

LABEL

public static final long LABEL

LOCAL

public static final long LOCAL

MECHANISM_TYPE

public static final long MECHANISM_TYPE

MIME_TYPES

public static final long MIME_TYPES

MODIFIABLE

public static final long MODIFIABLE

MODULUS

public static final long MODULUS

MODULUS_BITS

public static final long MODULUS_BITS

NEVER_EXTRACTABLE

public static final long NEVER_EXTRACTABLE

NSSCK_VENDOR_NETSCAPE

public static final long NSSCK_VENDOR_NETSCAPE

NSSCK_VENDOR_PKSC11_RU_TEAM

public static final long NSSCK_VENDOR_PKSC11_RU_TEAM

OBJECT_ID

public static final long OBJECT_ID

OTP_CHALLENGE_REQUIREMENT

public static final long OTP_CHALLENGE_REQUIREMENT

OTP_COUNTER

public static final long OTP_COUNTER

OTP_COUNTER_REQUIREMENT

public static final long OTP_COUNTER_REQUIREMENT

OTP_FORMAT

public static final long OTP_FORMAT

OTP_LENGTH

public static final long OTP_LENGTH

OTP_PIN_REQUIREMENT

public static final long OTP_PIN_REQUIREMENT

OTP_SERVICE_IDENTIFIER

public static final long OTP_SERVICE_IDENTIFIER

OTP_SERVICE_LOGO_TYPE

public static final long OTP_SERVICE_LOGO_TYPE

OTP_TIME

public static final long OTP_TIME

OTP_TIME_INTERVAL

public static final long OTP_TIME_INTERVAL

OTP_TIME_REQUIREMENT

public static final long OTP_TIME_REQUIREMENT

OTP_USER_FRIENDLY_MODE

public static final long OTP_USER_FRIENDLY_MODE

OTP_USER_IDENTIFIER

public static final long OTP_USER_IDENTIFIER

OWNER

public static final long OWNER

PIXEL_X

public static final long PIXEL_X

PIXEL_Y

public static final long PIXEL_Y

PRIME

public static final long PRIME

PRIME_1

public static final long PRIME_1

PRIME_2

public static final long PRIME_2

PRIME_BITS

public static final long PRIME_BITS

PRIVATE

public static final long PRIVATE

PRIVATE_EXPONENT

public static final long PRIVATE_EXPONENT

PUBLIC_EXPONENT

public static final long PUBLIC_EXPONENT

REQUIRED_CMS_ATTRIBUTES

public static final long REQUIRED_CMS_ATTRIBUTES

RESET_ON_INIT

public static final long RESET_ON_INIT

RESOLUTION

public static final long RESOLUTION

SECONDARY_AUTH

public static final long SECONDARY_AUTH

SENSITIVE

public static final long SENSITIVE

SERIAL_NUMBER

public static final long SERIAL_NUMBER

SIGN

public static final long SIGN

SIGN_RECOVER

public static final long SIGN_RECOVER

START_DATE

public static final long START_DATE

SUBJECT

public static final long SUBJECT

SUBPRIME

public static final long SUBPRIME

SUBPRIME_BITS

public static final long SUBPRIME_BITS

SUPPORTED_CMS_ATTRIBUTES

public static final long SUPPORTED_CMS_ATTRIBUTES

TOKEN

public static final long TOKEN

TRUSTED

public static final long TRUSTED

UNWRAP

public static final long UNWRAP

UNWRAP_TEMPLATE

public static final long UNWRAP_TEMPLATE

URL

public static final long URL

VALUE

public static final long VALUE

VALUE_BITS

public static final long VALUE_BITS

VALUE_LEN

public static final long VALUE_LEN

VENDOR_KT2_AUTOGENERATE_KEY

public static final long VENDOR_KT2_AUTOGENERATE_KEY

VENDOR_KT2_KEY_ACTIVE

public static final long VENDOR_KT2_KEY_ACTIVE

VENDOR_KT2_KEY_MESHING

public static final long VENDOR_KT2_KEY_MESHING

VENDOR_KT2_KEY_WRAP

public static final long VENDOR_KT2_KEY_WRAP

VENDOR_PTK_APPLICATION_COUNT

public static final long VENDOR_PTK_APPLICATION_COUNT

VENDOR_PTK_BATCH

public static final long VENDOR_PTK_BATCH

VENDOR_PTK_BUILD_DATE

public static final long VENDOR_PTK_BUILD_DATE

VENDOR_PTK_CERTIFICATE_END_TIME

public static final long VENDOR_PTK_CERTIFICATE_END_TIME

VENDOR_PTK_CERTIFICATE_START_TIME

public static final long VENDOR_PTK_CERTIFICATE_START_TIME

VENDOR_PTK_CHECK_VALUE

public static final long VENDOR_PTK_CHECK_VALUE

VENDOR_PTK_CKA_COUNTER

public static final long VENDOR_PTK_CKA_COUNTER

VENDOR_PTK_CKA_H_VALUE

public static final long VENDOR_PTK_CKA_H_VALUE

VENDOR_PTK_CKA_SEED

public static final long VENDOR_PTK_CKA_SEED

VENDOR_PTK_DATE_OF_MANUFACTURE

public static final long VENDOR_PTK_DATE_OF_MANUFACTURE

VENDOR_PTK_DELETABLE

public static final long VENDOR_PTK_DELETABLE

VENDOR_PTK_DELETE_FM

public static final long VENDOR_PTK_DELETE_FM

VENDOR_PTK_ENUM_ATTRIBUTE

public static final long VENDOR_PTK_ENUM_ATTRIBUTE

VENDOR_PTK_EVENT_LOG_FULL

public static final long VENDOR_PTK_EVENT_LOG_FULL

VENDOR_PTK_EXPORT

public static final long VENDOR_PTK_EXPORT

VENDOR_PTK_EXPORTABLE

public static final long VENDOR_PTK_EXPORTABLE

VENDOR_PTK_FINGERPRINT

public static final long VENDOR_PTK_FINGERPRINT

VENDOR_PTK_FLAGS

public static final long VENDOR_PTK_FLAGS

VENDOR_PTK_FM_STARTUP_STATUS

public static final long VENDOR_PTK_FM_STARTUP_STATUS

VENDOR_PTK_FM_STATUS

public static final long VENDOR_PTK_FM_STATUS

VENDOR_PTK_FREE_MEM

public static final long VENDOR_PTK_FREE_MEM

VENDOR_PTK_FW_VERSION

public static final long VENDOR_PTK_FW_VERSION

VENDOR_PTK_HALT_CMD

public static final long VENDOR_PTK_HALT_CMD

VENDOR_PTK_HIFACE_MASTER

public static final long VENDOR_PTK_HIFACE_MASTER

VENDOR_PTK_HW_EXT_INFO_STR

public static final long VENDOR_PTK_HW_EXT_INFO_STR

VENDOR_PTK_HW_STATUS

public static final long VENDOR_PTK_HW_STATUS

VENDOR_PTK_IMPORT

public static final long VENDOR_PTK_IMPORT

VENDOR_PTK_ISSUER_STR

public static final long VENDOR_PTK_ISSUER_STR

VENDOR_PTK_KEY_SIZE

public static final long VENDOR_PTK_KEY_SIZE

VENDOR_PTK_MANUFACTURER

public static final long VENDOR_PTK_MANUFACTURER

VENDOR_PTK_MAX_PIN_FAIL

public static final long VENDOR_PTK_MAX_PIN_FAIL

VENDOR_PTK_MAX_SESSIONS

public static final long VENDOR_PTK_MAX_SESSIONS

VENDOR_PTK_MECHANISM_LIST

public static final long VENDOR_PTK_MECHANISM_LIST

VENDOR_PTK_MIN_PIN_LEN

public static final long VENDOR_PTK_MIN_PIN_LEN

VENDOR_PTK_PKI_ATTRIBUTE_BER_ENCODED

public static final long VENDOR_PTK_PKI_ATTRIBUTE_BER_ENCODED

VENDOR_PTK_PURGE

public static final long VENDOR_PTK_PURGE

VENDOR_PTK_RAM_SPACE

public static final long VENDOR_PTK_RAM_SPACE

VENDOR_PTK_RECORD_COUNT

public static final long VENDOR_PTK_RECORD_COUNT

VENDOR_PTK_RECORD_NUMBER

public static final long VENDOR_PTK_RECORD_NUMBER

VENDOR_PTK_RESCAN_PERIPHERALS_CMD

public static final long VENDOR_PTK_RESCAN_PERIPHERALS_CMD

VENDOR_PTK_ROM_SPACE

public static final long VENDOR_PTK_ROM_SPACE

VENDOR_PTK_RTC_AAC_ENABLED

public static final long VENDOR_PTK_RTC_AAC_ENABLED

VENDOR_PTK_RTC_AAC_GUARD_COUNT

public static final long VENDOR_PTK_RTC_AAC_GUARD_COUNT

VENDOR_PTK_RTC_AAC_GUARD_DURATION

public static final long VENDOR_PTK_RTC_AAC_GUARD_DURATION

VENDOR_PTK_RTC_AAC_GUARD_SECONDS

public static final long VENDOR_PTK_RTC_AAC_GUARD_SECONDS

VENDOR_PTK_SECURITY_MODE

public static final long VENDOR_PTK_SECURITY_MODE

VENDOR_PTK_SERIAL_NUMBER_INT

public static final long VENDOR_PTK_SERIAL_NUMBER_INT

VENDOR_PTK_SIGN_LOCAL_CERT

public static final long VENDOR_PTK_SIGN_LOCAL_CERT

VENDOR_PTK_SLOT_ID

public static final long VENDOR_PTK_SLOT_ID

VENDOR_PTK_SUBJECT_STR

public static final long VENDOR_PTK_SUBJECT_STR

VENDOR_PTK_TAMPER_CMD

public static final long VENDOR_PTK_TAMPER_CMD

VENDOR_PTK_TIME_STAMP

public static final long VENDOR_PTK_TIME_STAMP

VENDOR_PTK_TRANSPORT_MODE

public static final long VENDOR_PTK_TRANSPORT_MODE

VENDOR_PTK_USAGE_COUNT

public static final long VENDOR_PTK_USAGE_COUNT

VENDOR_PTK_VERIFY_OS

public static final long VENDOR_PTK_VERIFY_OS

VENDOR_PTK_VERSION

public static final long VENDOR_PTK_VERSION

VERIFY

public static final long VERIFY

VERIFY_RECOVER

public static final long VERIFY_RECOVER

WRAP

public static final long WRAP

WRAP_TEMPLATE

public static final long WRAP_TEMPLATE

WRAP_WITH_TRUSTED

public static final long WRAP_WITH_TRUSTED

pValue

public byte[] pValue

type

public long type

ulValueLen

public long ulValueLen

Конструкторы

CKA

public CKA(long type)

Конструктор PKCS#11 CK_ATTRIBUTE с нулевым значением.

Параметры:
  • type – CKA_? тип. Передается один из ‘public static final long’ полей класса.

CKA

public CKA(long type, Object value)

Конструктор PKCS#11 CK_ATTRIBUTE.

Параметры:
  • type – CKA_? тип. Передается один из ‘public static final long’ полей класса.
  • value – значение. Поддерживаемые Java типы: Boolean, byte[], Number (long, long), String

Методы

L2S

public static final String L2S(long cka)

Преобразует значение цифровой константы в имя.

Параметры:
  • cka – значение
Результат:

имя константы

dump

public void dump(StringBuilder sb)

Dump для отладки.

Параметры:
  • sb – место записи дампа

getValue

public byte[] getValue()
Результат:значение в виде byte[]

getValueBigInt

public BigInteger getValueBigInt()
Результат:значение в виде BigInteger

getValueBool

public Boolean getValueBool()
Результат:значение в виде boolean

getValueLong

public Long getValueLong()
Результат:значение в виде Long

getValueStr

public String getValueStr()
Результат:значение в виде String

toString

public String toString()

Оглавление