public final class KeyType
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static KeyType |
AES |
protected static java.util.Hashtable<Algorithm,KeyType> |
algHash |
protected Algorithm[] |
algorithms |
static KeyType |
DES |
static KeyType |
DES3 |
static KeyType |
DH |
static KeyType |
DSA |
static KeyType |
EC |
static KeyType |
FORTEZZA
Deprecated.
As of NSS 3.11, FORTEZZA is no longer supported.
This is just a placeholder for backward compatibility.
|
static KeyType |
GENERIC_SECRET |
static KeyType |
KEA |
protected java.lang.String |
name |
static KeyType |
NULL |
static KeyType |
RC2 |
static KeyType |
RC4 |
static KeyType |
RSA |
static KeyType |
SHA1_HMAC |
static KeyType |
SHA256_HMAC |
static KeyType |
SHA384_HMAC |
static KeyType |
SHA512_HMAC |
Modifier | Constructor and Description |
---|---|
protected |
KeyType() |
protected |
KeyType(Algorithm[] algs,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static KeyType |
getKeyTypeFromAlgorithm(Algorithm alg)
Returns the KeyType corresponding to the given Algorithm.
|
Algorithm[] |
supportedAlgorithms()
Returns an array of algorithms supported by this key type.
|
java.lang.String |
toString() |
protected Algorithm[] algorithms
protected java.lang.String name
public static final KeyType NULL
public static final KeyType RSA
public static final KeyType DSA
public static final KeyType EC
@Deprecated public static final KeyType FORTEZZA
public static final KeyType DH
public static final KeyType KEA
public static final KeyType DES
public static final KeyType DES3
public static final KeyType AES
public static final KeyType RC4
public static final KeyType RC2
public static final KeyType SHA1_HMAC
public static final KeyType SHA256_HMAC
public static final KeyType SHA384_HMAC
public static final KeyType SHA512_HMAC
public static final KeyType GENERIC_SECRET
protected KeyType()
protected KeyType(Algorithm[] algs, java.lang.String name)
public Algorithm[] supportedAlgorithms()
public static KeyType getKeyTypeFromAlgorithm(Algorithm alg) throws java.security.NoSuchAlgorithmException
java.security.NoSuchAlgorithmException
public java.lang.String toString()
toString
in class java.lang.Object