public enum JweAlgorithm extends Enum<JweAlgorithm> implements Algorithm
Enum Constant and Description |
---|
A128KW
AES-128 KeyWrap.
|
A192KW
AES-192 KeyWrap.
|
A256KW
AES-256 KeyWrap.
|
DIRECT
Direct encryption with a shared symmetric key.
|
RSA_OAEP
RSA in ECB mode with OAEP with SHA-1 and MGF1 padding.
|
RSA_OAEP_256
RSA in ECB mode with OAEP with SHA-256 and MGF1 with SHA-256 padding.
|
RSAES_PKCS1_V1_5
RSA in ECB mode with PKCS1 Padding.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm()
Gets the actual name of the algorithm that is understood by Java cryptographic operations.
|
JweAlgorithmType |
getAlgorithmType()
Gets the JweAlgorithmType of the JweAlgorithm.
|
static JweAlgorithm |
parseAlgorithm(String algorithm)
Parses the given algorithm string to find the matching EncryptionMethod enum constant.
|
String |
toString()
Turns the JweAlgorithm constant into a JSON value string.
|
static JweAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JweAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JweAlgorithm RSAES_PKCS1_V1_5
public static final JweAlgorithm RSA_OAEP
public static final JweAlgorithm RSA_OAEP_256
public static final JweAlgorithm DIRECT
public static final JweAlgorithm A128KW
public static final JweAlgorithm A192KW
public static final JweAlgorithm A256KW
public static JweAlgorithm[] values()
for (JweAlgorithm c : JweAlgorithm.values()) System.out.println(c);
public static JweAlgorithm 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 getAlgorithm()
Algorithm
getAlgorithm
in interface Algorithm
public JweAlgorithmType getAlgorithmType()
public static JweAlgorithm parseAlgorithm(String algorithm)
algorithm
- The encryption algorithm.public String toString()
toString
in class Enum<JweAlgorithm>
Copyright © 2025 Open Identity Platform Community. All rights reserved.