public enum KeyPairGeneratorAlgorithm extends java.lang.Enum<KeyPairGeneratorAlgorithm> implements Algorithm
| Enum Constant and Description |
|---|
DIFFIE_HELLMAN
The enum constant for DIFFIE_HELLMAN algorithm.
|
DSA
The enum constant for DSA algorithm.
|
EC
The enum constant for EC algorithm.
|
RSA
The enum constant for RSA algorithm.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithm()
Gets the algorithm for encryption or decryption.
|
static KeyPairGeneratorAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static KeyPairGeneratorAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyPairGeneratorAlgorithm DIFFIE_HELLMAN
public static final KeyPairGeneratorAlgorithm DSA
public static final KeyPairGeneratorAlgorithm EC
public static final KeyPairGeneratorAlgorithm RSA
public static KeyPairGeneratorAlgorithm[] values()
for (KeyPairGeneratorAlgorithm c : KeyPairGeneratorAlgorithm.values()) System.out.println(c);
public static KeyPairGeneratorAlgorithm valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getAlgorithm()
AlgorithmgetAlgorithm in interface Algorithm