public enum KeyType extends Enum<KeyType>
Enum Constant and Description |
---|
EC
Elliptical Curve Key.
|
OCT
Octet Key.
|
OKP
Octet key-pair.
|
RSA
RSA key.
|
Modifier and Type | Method and Description |
---|---|
static KeyType |
getKeyType(String keyType)
Get the KeyType given a string.
|
String |
toString()
Gets the value of the KeyType.
|
String |
value()
Get the value of the KeyType.
|
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 RSA
public static final KeyType EC
public static final KeyType OCT
public static final KeyType OKP
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 nullpublic String value()
public static KeyType getKeyType(String keyType)
keyType
- string representing the KeyTypeCopyright © 2010-2018, ForgeRock All Rights Reserved.