Package org.mozilla.jss.crypto
Enum Class PKCS11Algorithm
- All Implemented Interfaces:
Serializable
,Comparable<PKCS11Algorithm>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
long
getValue()
static PKCS11Algorithm
Returns the enum constant of this class with the specified name.static PKCS11Algorithm
valueOfConstant
(long constant) static PKCS11Algorithm
valueOfIndex
(int index) static PKCS11Algorithm[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CKM_AES_CBC
-
CKM_AES_CBC_PAD
-
CKM_AES_ECB
-
CKM_AES_KEY_GEN
-
CKM_DES3_CBC_PAD
-
CKM_DES3_ECB
-
CKM_DES3_KEY_GEN
-
CKM_DES_CBC_PAD
-
CKM_DES_KEY_GEN
-
CKM_DSA_KEY_PAIR_GEN
-
CKM_EC_KEY_PAIR_GEN
-
CKM_NSS_AES_KEY_WRAP
-
CKM_NSS_AES_KEY_WRAP_PAD
-
CKM_PBA_SHA1_WITH_SHA1_HMAC
@Deprecated(since="5.0.1", forRemoval=true) public static final PKCS11Algorithm CKM_PBA_SHA1_WITH_SHA1_HMACDeprecated, for removal: This API element is subject to removal in a future version. -
CKM_RC2_CBC_PAD
-
CKM_RC2_KEY_GEN
-
CKM_RC4_KEY_GEN
-
CKM_RSA_PKCS_KEY_PAIR_GEN
-
CKM_SHA_1_HMAC
Deprecated, for removal: This API element is subject to removal in a future version. -
CKM_SHA_256_HMAC
-
CKM_SHA_384_HMAC
-
CKM_SHA_512_HMAC
-
CKM_AES_CMAC
-
CKM_SP800_108_COUNTER_KDF
-
CKM_SP800_108_FEEDBACK_KDF
-
CKM_SP800_108_DOUBLE_PIPELINE_KDF
-
CKM_NSS_SP800_108_COUNTER_KDF_DERIVE_DATA
-
CKM_NSS_SP800_108_FEEDBACK_KDF_DERIVE_DATA
-
CKM_NSS_SP800_108_DOUBLE_PIPELINE_KDF_DERIVE_DATA
-
CKM_MD2
-
CKM_MD5
-
CKM_SHA_1
-
CKM_SHA256
-
CKM_SHA384
-
CKM_SHA512
-
-
Field Details
-
alg_index
private int alg_index -
pk11_value
private long pk11_value
-
-
Constructor Details
-
PKCS11Algorithm
private PKCS11Algorithm(int alg_index, long pk11_value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getIndex
public int getIndex() -
getValue
public long getValue() -
valueOfIndex
-
valueOfConstant
-