org.mozilla.jss.pkcs11
Class KeyType
java.lang.Object
org.mozilla.jss.pkcs11.KeyType
public final class KeyType
extends java.lang.Object
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.
DES3
public static final KeyType DES3
FORTEZZA
public static final KeyType FORTEZZA
As of NSS 3.11, FORTEZZA is no longer supported.
This is just a placeholder for backward compatibility.
NULL
public static final KeyType NULL
SHA1_HMAC
public static final KeyType SHA1_HMAC
algHash
protected static Hashtable algHash
name
protected String name
KeyType
protected KeyType()
KeyType
protected KeyType(Algorithm[] algs,
String name)
getKeyTypeFromAlgorithm
public static KeyType getKeyTypeFromAlgorithm(Algorithm alg)
throws NoSuchAlgorithmException
Returns the KeyType corresponding to the given Algorithm. If there
is no KeyType registered for this algorithm, a NoSuchAlgorithmException
is thrown.
supportedAlgorithms
public Algorithm[] supportedAlgorithms()
Returns an array of algorithms supported by this key type.
toString
public String toString()