Enum SignatureAlgorithm
java.lang.Object
java.lang.Enum<SignatureAlgorithm>
com.codename1.backend.security.oauth2.jose.jws.SignatureAlgorithm
- All Implemented Interfaces:
JwsAlgorithm, Comparable<SignatureAlgorithm>
The public key algorithms: a token signed with a private key that anyone
holding the public key can verify, and only the signer could have made.
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureAlgorithmThe algorithm of this name, or null when it is not one of these.getName()The name as a token'salgheader carries it:RS256.static SignatureAlgorithmReturns the enum constant of this type with the specified name.static SignatureAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
RS256
RSASSA-PKCS1-v1_5 with SHA-256. What most identity providers sign with. -
RS384
RSASSA-PKCS1-v1_5 with SHA-384. -
RS512
RSASSA-PKCS1-v1_5 with SHA-512. -
PS256
RSASSA-PSS with SHA-256 and MGF1 over SHA-256. -
ES256
ECDSA on P-256 with SHA-256. -
ES384
ECDSA on P-384 with SHA-384.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
Description copied from interface:JwsAlgorithmThe name as a token'salgheader carries it:RS256.- Specified by:
getNamein interfaceJwsAlgorithm
-
from
The algorithm of this name, or null when it is not one of these.
-