public static enum Platform.KeyType extends Enum<Platform.KeyType>
Enum Constant and Description |
---|
EC
Elliptic Curve key algorithm with 233 bits size and SHA1withECDSA signing algorithm.
|
RSA
RSA key algorithm with 2048 bits size and SHA1withRSA signing algorithm.
|
Modifier and Type | Field and Description |
---|---|
static Platform.KeyType |
DEFAULT
Default key type used when none can be determined.
|
Modifier and Type | Method and Description |
---|---|
static Platform.KeyType |
getTypeOrDefault(String alias)
Get a KeyType based on the alias name.
|
boolean |
isSupported()
Check whether this key type is supported by the current JVM.
|
static Platform.KeyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Platform.KeyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform.KeyType RSA
public static final Platform.KeyType EC
public static final Platform.KeyType DEFAULT
public static Platform.KeyType[] values()
for (Platform.KeyType c : Platform.KeyType.values()) System.out.println(c);
public static Platform.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 nullpublic boolean isSupported()
public static Platform.KeyType getTypeOrDefault(String alias)
alias
- certificate aliasCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.