public enum KeyUse extends Enum<KeyUse>
use parameter in a
JSON Web Key (JWK).
Public JWK use values:
| Enum Constant and Description |
|---|
ENCRYPTION
Encryption.
|
SIGNATURE
Signature.
|
| Modifier and Type | Method and Description |
|---|---|
String |
identifier()
Returns the identifier of this public key use.
|
static KeyUse |
parse(String s)
Parses a public key use from the specified JWK
use parameter
value. |
String |
toString() |
static KeyUse |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeyUse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KeyUse ENCRYPTION
public static KeyUse[] values()
for (KeyUse c : KeyUse.values()) System.out.println(c);
public static KeyUse 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 identifier()
public static KeyUse parse(String s) throws ParseException
use parameter
value.s - The string to parse. May be null.null if none.ParseException - If the string couldn't be parsed to a valid
public key use.Copyright © 2014 Connect2id Ltd.. All Rights Reserved.