Enum Constant and Description |
---|
ENCRYPTION
Encryption.
|
SIGNATURE
Signature.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
identifier()
Returns the identifier of this public key use.
|
static KeyUse |
parse(java.lang.String s)
Parses a public key use from the specified JWK
use parameter
value. |
java.lang.String |
toString() |
static KeyUse |
valueOf(java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String identifier()
public java.lang.String toString()
toString
in class java.lang.Enum<KeyUse>
identifier()
public static KeyUse parse(java.lang.String s) throws java.text.ParseException
use
parameter
value.s
- The string to parse. May be null
.null
if none.java.text.ParseException
- If the string couldn't be parsed to a valid
public key use.Copyright © 2014 Connect2id Ltd.. All Rights Reserved.