public static enum JwtToken.SIGN_ALGORITHM extends java.lang.Enum<JwtToken.SIGN_ALGORITHM>
This represents the specific cryptographic algorithms to sign the contents of the JWT token.
Enum Constant and Description |
---|
ES256
ECDSA using P-256 curve and SHA-256 hash algorithm
|
ES384
ECDSA using P-384 curve and SHA-384 hash algorithm
|
ES512
ECDSA using P-521 curve and SHA-512 hash algorithm
|
HS256
HMAC using SHA-256 hash algorithm
|
HS384
HMAC using SHA-384 hash algorithm
|
HS512
HMAC using SHA-512 hash algorithm
|
none
This represents the sign algorithm value to be used when signing of JWT token is not required.
|
RS256
RSA using SHA-256 hash algorithm
|
RS384
RSA using SHA-384 hash algorithm
|
RS512
RSA using SHA-512 hash algorithm
|
Modifier and Type | Method and Description |
---|---|
static JwtToken.SIGN_ALGORITHM |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JwtToken.SIGN_ALGORITHM[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final JwtToken.SIGN_ALGORITHM none
This represents the sign algorithm value to be used when signing of JWT token is not required.
public static final JwtToken.SIGN_ALGORITHM RS256
public static final JwtToken.SIGN_ALGORITHM RS384
public static final JwtToken.SIGN_ALGORITHM RS512
public static final JwtToken.SIGN_ALGORITHM ES256
public static final JwtToken.SIGN_ALGORITHM ES384
public static final JwtToken.SIGN_ALGORITHM ES512
public static final JwtToken.SIGN_ALGORITHM HS256
public static final JwtToken.SIGN_ALGORITHM HS384
public static final JwtToken.SIGN_ALGORITHM HS512
public static JwtToken.SIGN_ALGORITHM[] values()
for (JwtToken.SIGN_ALGORITHM c : JwtToken.SIGN_ALGORITHM.values()) System.out.println(c);
public static JwtToken.SIGN_ALGORITHM valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null