Enum AsymmetricSignatureAlgorithm
java.lang.Object
java.lang.Enum<AsymmetricSignatureAlgorithm>
io.jans.as.model.crypto.signature.AsymmetricSignatureAlgorithm
- All Implemented Interfaces:
HasParamName
,io.jans.orm.annotation.AttributeEnum
,Serializable
,Comparable<AsymmetricSignatureAlgorithm>
,java.lang.constant.Constable
public enum AsymmetricSignatureAlgorithm
extends Enum<AsymmetricSignatureAlgorithm>
implements HasParamName, io.jans.orm.annotation.AttributeEnum
- Version:
- August 20, 2019
- Author:
- Javier Rojas Blum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic AsymmetricSignatureAlgorithm
fromString
(String param) Returns the correspondingAsymmetricSignatureAlgorithm
for a parameter alg of the JWK endpoint.static List<AsymmetricSignatureAlgorithm>
fromString
(String[] params) static AsymmetricSignatureAlgorithm
getByValue
(String value) getCurve()
getValue()
Enum<? extends io.jans.orm.annotation.AttributeEnum>
resolveByValue
(String value) toString()
Returns a string representation of the object.static AsymmetricSignatureAlgorithm
Returns the enum constant of this type with the specified name.static AsymmetricSignatureAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
RS256
-
RS384
-
RS512
-
ES256
-
ES384
-
ES512
-
PS256
-
PS384
-
PS512
-
-
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
-
getParamName
- Specified by:
getParamName
in interfaceHasParamName
-
getValue
- Specified by:
getValue
in interfaceio.jans.orm.annotation.AttributeEnum
-
getFamily
-
getAlgorithm
-
getCurve
-
getJwtType
-
fromString
-
fromString
Returns the correspondingAsymmetricSignatureAlgorithm
for a parameter alg of the JWK endpoint.- Parameters:
param
- The alg parameter.- Returns:
- The corresponding alg if found, otherwise
null
.
-
getByValue
-
resolveByValue
- Specified by:
resolveByValue
in interfaceio.jans.orm.annotation.AttributeEnum
-
toString
Returns a string representation of the object. In this case the parameter name.- Overrides:
toString
in classEnum<AsymmetricSignatureAlgorithm>
- Returns:
- The string representation of the object.
-