public enum JWA extends Enum<JWA>
All JSON Web Algorithms (JWA) that the implementation supports. Introduces methods to obtain the according instances of MessageDigest and Signature.
Enum Constant and Description |
---|
ES256 |
ES384 |
ES512 |
RS256 |
RS384 |
RS512 |
Modifier and Type | Method and Description |
---|---|
boolean |
isRsa()
Tells whether the JWA uses RSA or not.
|
static JWA |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JWA[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JWA RS256
public static final JWA RS384
public static final JWA RS512
public static final JWA ES256
public static final JWA ES384
public static final JWA ES512
public static JWA[] values()
for (JWA c : JWA.values()) System.out.println(c);
public static JWA 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 boolean isRsa()
Tells whether the JWA uses RSA or not.
True
iff either ES256, ES384, ES512
. False
otherwise.Copyright © 2022 Stiftung SIC. All rights reserved.