public enum JWTEncryptionAlgorithm extends Enum<JWTEncryptionAlgorithm>
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
encrypt(Key key,
String prologue) |
static JWTEncryptionAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JWTEncryptionAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
abstract boolean |
verify(Key key,
String[] pieces,
boolean urlSafe) |
public static final JWTEncryptionAlgorithm HS256
public static final JWTEncryptionAlgorithm RS256
public static JWTEncryptionAlgorithm[] values()
for (JWTEncryptionAlgorithm c : JWTEncryptionAlgorithm.values()) System.out.println(c);
public static JWTEncryptionAlgorithm 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 nullCopyright © 2018. All rights reserved.