Package io.jans.as.model.jwk
Enum Algorithm
- java.lang.Object
-
- java.lang.Enum<Algorithm>
-
- io.jans.as.model.jwk.Algorithm
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A128GCMKWA128KWA192GCMKWA192KWA256GCMKWA256KWECDH_ESECDH_ES_PLUS_A128KWECDH_ES_PLUS_A192KWECDH_ES_PLUS_A256KWED25519ED448ES256ES256KES384ES512PBES2_HS256_PLUS_A128KWPBES2_HS384_PLUS_A192KWPBES2_HS512_PLUS_A256KWPS256PS384PS512RS256RS384RS512RSA_OAEPRSA_OAEP_256RSA1_5
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlgorithmfromString(java.lang.String param)Returns the correspondingAlgorithmfor a parameter.static java.util.List<Algorithm>fromString(java.lang.String[] params, Use use)AlgorithmFamilygetFamily()java.lang.StringgetParamName()UsegetUse()java.lang.StringtoString()Returns a string representation of the object.static AlgorithmvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Algorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RS256
public static final Algorithm RS256
-
RS384
public static final Algorithm RS384
-
RS512
public static final Algorithm RS512
-
ES256
public static final Algorithm ES256
-
ES256K
public static final Algorithm ES256K
-
ES384
public static final Algorithm ES384
-
ES512
public static final Algorithm ES512
-
PS256
public static final Algorithm PS256
-
PS384
public static final Algorithm PS384
-
PS512
public static final Algorithm PS512
-
ED25519
public static final Algorithm ED25519
-
ED448
public static final Algorithm ED448
-
RSA1_5
public static final Algorithm RSA1_5
-
RSA_OAEP
public static final Algorithm RSA_OAEP
-
RSA_OAEP_256
public static final Algorithm RSA_OAEP_256
-
ECDH_ES
public static final Algorithm ECDH_ES
-
ECDH_ES_PLUS_A128KW
public static final Algorithm ECDH_ES_PLUS_A128KW
-
ECDH_ES_PLUS_A192KW
public static final Algorithm ECDH_ES_PLUS_A192KW
-
ECDH_ES_PLUS_A256KW
public static final Algorithm ECDH_ES_PLUS_A256KW
-
A128KW
public static final Algorithm A128KW
-
A192KW
public static final Algorithm A192KW
-
A256KW
public static final Algorithm A256KW
-
A128GCMKW
public static final Algorithm A128GCMKW
-
A192GCMKW
public static final Algorithm A192GCMKW
-
A256GCMKW
public static final Algorithm A256GCMKW
-
PBES2_HS256_PLUS_A128KW
public static final Algorithm PBES2_HS256_PLUS_A128KW
-
PBES2_HS384_PLUS_A192KW
public static final Algorithm PBES2_HS384_PLUS_A192KW
-
PBES2_HS512_PLUS_A256KW
public static final Algorithm PBES2_HS512_PLUS_A256KW
-
-
Method Detail
-
values
public static Algorithm[] 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 (Algorithm c : Algorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Algorithm 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()
-
getUse
public Use getUse()
-
getFamily
public AlgorithmFamily getFamily()
-
fromString
public static Algorithm fromString(java.lang.String param)
Returns the correspondingAlgorithmfor a parameter.- Parameters:
param- The use parameter.- Returns:
- The corresponding algorithm if found, otherwise
null.
-
toString
public java.lang.String toString()
Returns a string representation of the object. In this case the parameter name.- Overrides:
toStringin classjava.lang.Enum<Algorithm>- Returns:
- The string representation of the object.
-
-