Luna Jcprov

Package com.safenetinc.jcprov.constants

Provides PKCS#11 related constant definitions.

See: Description

Package com.safenetinc.jcprov.constants Description

Provides PKCS#11 related constant definitions.

Constants in PKCS#11 have a Type and a Value. For each constant Type, there is a well defined set of Values.

This concept has been modelled using two classes, one to represent the constant Type (e.g CK_KEY_TYPE) and one to represent the collection of Values, and instances of those values (e.g CKK).

If an instance of a constant Value is passed to a function in a manner which would try to modify the internal numeric value (e.g passing CKK.DES in a template to Cryptoki.C_GetAttributeValue) then an java.lang.UnsupportedOperationException object is thrown, to indicate that modification of a constant Value is not allowed.

Flags and Masks are different in that they are a sequence of bit fields, so CKF and CKG are just a collection of long values, which can be bitwise or'ed together as required.

CK is just a collection of constants, so there is no related constant Type class.

Luna Jcprov

Copyright (c) 2021 SafeNet. All rights reserved.