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
,java.io.Serializable
,java.lang.Comparable<AsymmetricSignatureAlgorithm>
public enum AsymmetricSignatureAlgorithm extends java.lang.Enum<AsymmetricSignatureAlgorithm> implements HasParamName, io.jans.orm.annotation.AttributeEnum
- Version:
- August 20, 2019
- Author:
- Javier Rojas Blum
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AsymmetricSignatureAlgorithm
fromString(java.lang.String param)
Returns the correspondingAsymmetricSignatureAlgorithm
for a parameter alg of the JWK endpoint.static java.util.List<AsymmetricSignatureAlgorithm>
fromString(java.lang.String[] params)
java.lang.String
getAlgorithm()
static AsymmetricSignatureAlgorithm
getByValue(java.lang.String value)
EllipticEdvardsCurve
getCurve()
AlgorithmFamily
getFamily()
JwtType
getJwtType()
java.lang.String
getParamName()
java.lang.String
getValue()
java.lang.Enum<? extends io.jans.orm.annotation.AttributeEnum>
resolveByValue(java.lang.String value)
java.lang.String
toString()
Returns a string representation of the object.static AsymmetricSignatureAlgorithm
valueOf(java.lang.String name)
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 Detail
-
RS256
public static final AsymmetricSignatureAlgorithm RS256
-
RS384
public static final AsymmetricSignatureAlgorithm RS384
-
RS512
public static final AsymmetricSignatureAlgorithm RS512
-
ES256
public static final AsymmetricSignatureAlgorithm ES256
-
ES384
public static final AsymmetricSignatureAlgorithm ES384
-
ES512
public static final AsymmetricSignatureAlgorithm ES512
-
PS256
public static final AsymmetricSignatureAlgorithm PS256
-
PS384
public static final AsymmetricSignatureAlgorithm PS384
-
PS512
public static final AsymmetricSignatureAlgorithm PS512
-
-
Method Detail
-
values
public static AsymmetricSignatureAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AsymmetricSignatureAlgorithm c : AsymmetricSignatureAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AsymmetricSignatureAlgorithm valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getParamName
public java.lang.String getParamName()
- Specified by:
getParamName
in interfaceHasParamName
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfaceio.jans.orm.annotation.AttributeEnum
-
getFamily
public AlgorithmFamily getFamily()
-
getAlgorithm
public java.lang.String getAlgorithm()
-
getCurve
public EllipticEdvardsCurve getCurve()
-
getJwtType
public JwtType getJwtType()
-
fromString
public static java.util.List<AsymmetricSignatureAlgorithm> fromString(java.lang.String[] params)
-
fromString
public static AsymmetricSignatureAlgorithm fromString(java.lang.String param)
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
public static AsymmetricSignatureAlgorithm getByValue(java.lang.String value)
-
resolveByValue
public java.lang.Enum<? extends io.jans.orm.annotation.AttributeEnum> resolveByValue(java.lang.String value)
- Specified by:
resolveByValue
in interfaceio.jans.orm.annotation.AttributeEnum
-
toString
public java.lang.String toString()
Returns a string representation of the object. In this case the parameter name.- Overrides:
toString
in classjava.lang.Enum<AsymmetricSignatureAlgorithm>
- Returns:
- The string representation of the object.
-
-