public enum JwtSignatureAlgorithm extends Enum<JwtSignatureAlgorithm>
| Enum Constant and Description |
|---|
ES256 |
ES384 |
ES512 |
HS256 |
HS384 |
HS512 |
NONE |
PS256 |
PS384 |
PS512 |
RS256 |
RS384 |
RS512 |
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Get the algorithm description.
|
String |
getValue()
Get the algorithm name.
|
boolean |
isSymmetric()
Get whether the algorithm is symmetric.
|
static JwtSignatureAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JwtSignatureAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JwtSignatureAlgorithm NONE
public static final JwtSignatureAlgorithm HS256
public static final JwtSignatureAlgorithm HS384
public static final JwtSignatureAlgorithm HS512
public static final JwtSignatureAlgorithm RS256
public static final JwtSignatureAlgorithm RS384
public static final JwtSignatureAlgorithm RS512
public static final JwtSignatureAlgorithm ES256
public static final JwtSignatureAlgorithm ES384
public static final JwtSignatureAlgorithm ES512
public static final JwtSignatureAlgorithm PS256
public static final JwtSignatureAlgorithm PS384
public static final JwtSignatureAlgorithm PS512
public static JwtSignatureAlgorithm[] values()
for (JwtSignatureAlgorithm c : JwtSignatureAlgorithm.values()) System.out.println(c);
public static JwtSignatureAlgorithm 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 getValue()
public String getDescription()
public boolean isSymmetric()
true if symmetric, false if asymmetricCopyright © 2019 The Holon Platform. All rights reserved.