Package org.mozilla.jss.pkcs11
Class KeyType
java.lang.Object
org.mozilla.jss.pkcs11.KeyType
PKCS #11 Key Types
These are the possible types for keys in the
wrapper library.
Key types are implemented as flyweights.
Although the KeyType class is public, it should
be considered private. We made the KeyType class
public so that we can force it to load during
CryptoManager.initialize(), before we install JSS
as a provider.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final KeyType
protected Algorithm[]
static final KeyType
static final KeyType
static final KeyType
static final KeyType
static final KeyType
static final KeyType
Deprecated.As of NSS 3.11, FORTEZZA is no longer supported.static final KeyType
static final KeyType
protected String
static final KeyType
static final KeyType
static final KeyType
static final KeyType
static final KeyType
Deprecated, for removal: This API element is subject to removal in a future version.static final KeyType
static final KeyType
static final KeyType
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
algorithms
-
name
-
algHash
-
NULL
-
RSA
-
DSA
-
EC
-
FORTEZZA
Deprecated.As of NSS 3.11, FORTEZZA is no longer supported. This is just a placeholder for backward compatibility. -
DH
-
KEA
-
DES
-
DES3
-
AES
-
RC4
-
RC2
-
SHA1_HMAC
Deprecated, for removal: This API element is subject to removal in a future version. -
SHA256_HMAC
-
SHA384_HMAC
-
SHA512_HMAC
-
GENERIC_SECRET
-
-
Constructor Details
-
KeyType
protected KeyType() -
KeyType
-
-
Method Details
-
supportedAlgorithms
Returns an array of algorithms supported by this key type. -
getKeyTypeFromAlgorithm
Returns the KeyType corresponding to the given Algorithm. If there is no KeyType registered for this algorithm, a NoSuchAlgorithmException is thrown.- Throws:
NoSuchAlgorithmException
-
toString
-