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 A128GCMKW
A128KW
A192GCMKW
A192KW
A256GCMKW
A256KW
DIR
ECDH_ES
ECDH_ES_PLUS_A128KW
ECDH_ES_PLUS_A192KW
ECDH_ES_PLUS_A256KW
EDDSA
ES256
ES256K
ES384
ES512
PBES2_HS256_PLUS_A128KW
PBES2_HS384_PLUS_A192KW
PBES2_HS512_PLUS_A256KW
PS256
PS384
PS512
RS256
RS384
RS512
RSA_OAEP
RSA_OAEP_256
RSA1_5
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canGenerateKeys()
void
fill(org.json.JSONObject jsonObject)
static Algorithm
fromString(java.lang.String param)
Returns the correspondingAlgorithm
for a parameter.static java.util.List<Algorithm>
fromString(java.lang.String[] params, Use use)
java.lang.String
getDescription()
AlgorithmFamily
getFamily()
int
getKeyLength()
java.lang.String
getOutName()
java.lang.String
getParamName()
Use
getUse()
java.lang.String
toString()
Returns a string representation of the object.static Algorithm
valueOf(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
-
EDDSA
public static final Algorithm EDDSA
-
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
-
DIR
public static final Algorithm DIR
-
-
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()
-
getOutName
public java.lang.String getOutName()
-
getDescription
public java.lang.String getDescription()
-
getUse
public Use getUse()
-
getFamily
public AlgorithmFamily getFamily()
-
getKeyLength
public int getKeyLength()
-
canGenerateKeys
public boolean canGenerateKeys()
-
fill
public void fill(org.json.JSONObject jsonObject)
-
fromString
public static Algorithm fromString(java.lang.String param)
Returns the correspondingAlgorithm
for 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:
toString
in classjava.lang.Enum<Algorithm>
- Returns:
- The string representation of the object.
-
-