public enum KeyType extends Enum<KeyType>
| Enum Constant and Description |
|---|
Default
Recommended most safe type
|
EC_BP256R1
256-bits Brainpool curve
|
EC_BP384R1
384-bits Brainpool curve
|
EC_BP512R1
512-bits Brainpool curve
|
EC_SECP192K1
192-bits "Koblitz" curve
|
EC_SECP192R1
192-bits NIST curve
|
EC_SECP224K1
224-bits "Koblitz" curve
|
EC_SECP224R1
224-bits NIST curve
|
EC_SECP256K1
256-bits "Koblitz" curve
|
EC_SECP256R1
256-bits NIST curve
|
EC_SECP384R1
384-bits NIST curve
|
EC_SECP521R1
521-bits NIST curve
|
RSA_1024
RSA 1024 bit (not recommended)
|
RSA_2048
RSA 2048 bit (not recommended)
|
RSA_256
RSA 1024 bit (not recommended)
|
RSA_4096
RSA 4096 bit
|
RSA_512
RSA 1024 bit (not recommended)
|
| Modifier and Type | Method and Description |
|---|---|
static KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyType Default
public static final KeyType RSA_256
public static final KeyType RSA_512
public static final KeyType RSA_1024
public static final KeyType RSA_2048
public static final KeyType RSA_4096
public static final KeyType EC_SECP192R1
public static final KeyType EC_SECP224R1
public static final KeyType EC_SECP256R1
public static final KeyType EC_SECP384R1
public static final KeyType EC_SECP521R1
public static final KeyType EC_BP256R1
public static final KeyType EC_BP384R1
public static final KeyType EC_BP512R1
public static final KeyType EC_SECP192K1
public static final KeyType EC_SECP224K1
public static final KeyType EC_SECP256K1
public static KeyType[] values()
for (KeyType c : KeyType.values()) System.out.println(c);
public static KeyType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2016. All rights reserved.