public enum KeyFormat extends Enum<KeyFormat>
Enum Constant and Description |
---|
ANY
Key can be in any of the supported formats.
|
JWK
JWK key set or single JWK key.
|
JWK_BASE64URL
JWK key set or single JWK key which has been Base64URL-encoded.
|
PEM_CERTIFICATE
PEM file containing a Base64-encoded certificate.
|
PEM_KEY
PEM file containing a Base64-encoded key.
|
Modifier and Type | Method and Description |
---|---|
static KeyFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyFormat PEM_KEY
public static final KeyFormat PEM_CERTIFICATE
public static final KeyFormat JWK
public static final KeyFormat JWK_BASE64URL
public static final KeyFormat ANY
public static KeyFormat[] values()
for (KeyFormat c : KeyFormat.values()) System.out.println(c);
public static KeyFormat 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 © 2018–2021. All rights reserved.