public enum JweHeaderKey extends Enum<JweHeaderKey>
As described in the JWE specification, the reserved JWE header parameters are listed,
JwsHeaderKey
.
Any other header parameter name is deemed as a "custom" header parameter.Enum Constant and Description |
---|
APU
Agreement PartyUInfo header parameter.
|
CUSTOM
Generic header key for a custom header parameter.
|
ENC
Encryption Method header parameter.
|
EPK
Ephemeral Public Key header parameter.
|
ZIP
Compression Algorithm header parameter.
|
Modifier and Type | Method and Description |
---|---|
static JweHeaderKey |
getHeaderKey(String headerKey)
Gets the JweHeaderKey constant that matches the given String.
|
String |
toString()
Turns the JweHeaderKey constant into a lowercase String.
|
String |
value()
Returns a lowercase String of the JweHeaderKey constant.
|
static JweHeaderKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JweHeaderKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JweHeaderKey ENC
public static final JweHeaderKey EPK
public static final JweHeaderKey ZIP
public static final JweHeaderKey APU
public static final JweHeaderKey CUSTOM
public static JweHeaderKey[] values()
for (JweHeaderKey c : JweHeaderKey.values()) System.out.println(c);
public static JweHeaderKey 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()
toString()
public static JweHeaderKey getHeaderKey(String headerKey)
If the given String does not match any of the constants, then CUSTOM is returned.
headerKey
- The String representation of a JweHeaderKey.public String toString()
toString
in class Enum<JweHeaderKey>
Copyright © 2025 Open Identity Platform Community. All rights reserved.