Enum SignatureAlgorithm
- All Implemented Interfaces:
Serializable
,Comparable<SignatureAlgorithm>
,java.lang.constant.Constable
Signature Algorithms.
JWS digital signature and MAC "alg" (algorithm) values
(RFC 7518, A.1. Digital Signature/MAC Algorithm Identifier
Cross-Reference).
CFRG Elliptic Curve Diffie-Hellman (ECDH) and Signatures
in JSON Object Signing and Encryption (JOSE) signature
algorithm "Ed25519".
- Version:
- October 26, 2021
- Author:
- Javier Rojas Blum, Sergey Manoylo
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
-
Method Summary
Modifier and TypeMethodDescriptionstatic SignatureAlgorithm
fromString
(String param) Returns the correspondingSignatureAlgorithm
for a parameter alg of the JWK endpoint.static List<SignatureAlgorithm>
fromString
(String[] params) getAlg()
getCurve()
com.nimbusds.jose.JWSAlgorithm
Returns this.jwsAlgorithm (JSON Web Signature (JWS) algorithm name)getName()
toString()
Returns a string representation of the object.static SignatureAlgorithm
Returns 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.
-
Enum Constant Details
-
NONE
-
HS256
-
HS384
-
HS512
-
RS256
-
RS384
-
RS512
-
ES256
-
ES256K
-
ES384
-
ES512
-
PS256
-
PS384
-
PS512
-
EDDSA
-
-
Field Details
-
DEF_HS256
- See Also:
-
DEF_HS384
- See Also:
-
DEF_HS512
- See Also:
-
DEF_RS256
- See Also:
-
DEF_RS384
- See Also:
-
DEF_RS512
- See Also:
-
DEF_ES256
- See Also:
-
DEF_ES256K
- See Also:
-
DEF_ES384
- See Also:
-
DEF_ES512
- See Also:
-
DEF_PS256
- See Also:
-
DEF_PS384
- See Also:
-
DEF_PS512
- See Also:
-
DEF_ED25519
- See Also:
-
DEF_EDDDSA
- See Also:
-
DEF_HMACSHA256
- See Also:
-
DEF_HMACSHA384
- See Also:
-
DEF_HMACSHA512
- See Also:
-
DEF_SHA256WITHRSA
- See Also:
-
DEF_SHA384WITHRSA
- See Also:
-
DEF_SHA512WITHRSA
- See Also:
-
DEF_SHA256WITHECDSA
- See Also:
-
DEF_SHA384WITHECDSA
- See Also:
-
DEF_SHA512WITHECDSA
- See Also:
-
DEF_SHA256WITHRSAANDMGF1
- See Also:
-
DEF_SHA384WITHRSAANDMGF1
- See Also:
-
DEF_SHA512WITHRSAANDMGF1
- See Also:
-
-
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
-
getAlg
-
getName
-
getFamily
-
getAlgorithm
-
getCurve
-
getJwtType
-
fromString
-
fromString
Returns the correspondingSignatureAlgorithm
for a parameter alg of the JWK endpoint.- Parameters:
param
- The alg parameter.- Returns:
- The corresponding alg if found, otherwise
null
.
-
toString
Returns a string representation of the object. In this case the parameter name.- Overrides:
toString
in classEnum<SignatureAlgorithm>
- Returns:
- The string representation of the object.
-
getJwsAlgorithm
public com.nimbusds.jose.JWSAlgorithm getJwsAlgorithm()Returns this.jwsAlgorithm (JSON Web Signature (JWS) algorithm name)- Returns:
- this.jwsAlgorithm (JSON Web Signature (JWS) algorithm name)
-