Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public enum SignatureAlgorithm
- Object
- Enum<SignatureAlgorithm>
- SignatureAlgorithm
ImplementsComparable<SignatureAlgorithm>, JwsAlgorithm
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 constants
RS256 | RSASSA-PKCS1-v1_5 with SHA-256. |
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. |
Methods
Inherited methods
Enum constant details
RS256
RS256RSASSA-PKCS1-v1_5 with SHA-256. What most identity providers sign with.
RS384
RS384RSASSA-PKCS1-v1_5 with SHA-384.
RS512
RS512RSASSA-PKCS1-v1_5 with SHA-512.
PS256
PS256RSASSA-PSS with SHA-256 and MGF1 over SHA-256.
ES256
ES256ECDSA on P-256 with SHA-256.
ES384
ES384ECDSA on P-384 with SHA-384.
Method details
values
public static SignatureAlgorithm[] values()valueOf
public static SignatureAlgorithm valueOf(String name)getName
public String getName()The name as a token’s
alg header carries it: RS256.from
public static SignatureAlgorithm from(String name)The algorithm of this name, or null when it is not one of these.