public enum JwkKeyFormat extends Enum<JwkKeyFormat> implements KeyFormat<JWK>
Enum Constant and Description |
---|
USING_KEY_OPS
A JWK format that only includes the key_ops parameter to express the key's usage.
|
USING_USE
A JWK format that only includes the use parameter to express the key's usage.
|
USING_USE_AND_KEY_OPS
A JWK format that includes both the use and key_ops parameters to express the key's usage.
|
Modifier and Type | Method and Description |
---|---|
JWK |
export(CryptoKey key,
Key rawKey)
Exports the given crypto key and raw key material.
|
static JwkKeyFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JwkKeyFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JwkKeyFormat USING_USE
public static final JwkKeyFormat USING_KEY_OPS
public static final JwkKeyFormat USING_USE_AND_KEY_OPS
public static JwkKeyFormat[] values()
for (JwkKeyFormat c : JwkKeyFormat.values()) System.out.println(c);
public static JwkKeyFormat 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 © 2010-2018, ForgeRock All Rights Reserved.