public enum JwsHeaderKey extends Enum<JwsHeaderKey>
As described in the JWS specification, the reserved JWS header parameters are listed,
Enum Constant and Description |
---|
CRIT
Critical header parameter.
|
CTY
Content Type header parameter.
|
CUSTOM
Generic header key for a custom header parameter.
|
JKU
JWK Set URL header parameter.
|
JWK
JSON Web Key header parameter.
|
KID
Key ID header parameter.
|
X5C
X.509 Certificate Chain header parameter.
|
X5T
X.509 Certificate Thumbprint header parameter.
|
X5U
X.509 URL header parameter.
|
Modifier and Type | Method and Description |
---|---|
static JwsHeaderKey |
getHeaderKey(String headerKey)
Gets the JwsHeaderKey constant that matches the given String.
|
String |
toString()
Turns the JwsHeaderKey constant into a lowercase String.
|
String |
value()
Returns a lowercase String of the JwsHeaderKey constant.
|
static JwsHeaderKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JwsHeaderKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JwsHeaderKey JKU
public static final JwsHeaderKey JWK
public static final JwsHeaderKey X5U
public static final JwsHeaderKey X5T
public static final JwsHeaderKey X5C
public static final JwsHeaderKey KID
public static final JwsHeaderKey CTY
public static final JwsHeaderKey CRIT
public static final JwsHeaderKey CUSTOM
public static JwsHeaderKey[] values()
for (JwsHeaderKey c : JwsHeaderKey.values()) System.out.println(c);
public static JwsHeaderKey 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()
JwsHeaderKey.toString()
public static JwsHeaderKey getHeaderKey(String headerKey)
If the given String does not match any of the constants, then CUSTOM is returned.
headerKey
- The String representation of a JwsHeaderKey.public String toString()
toString
in class Enum<JwsHeaderKey>
Copyright © 2010-2018, ForgeRock All Rights Reserved.