Package io.jans.as.model.crypto.binding
Enum TokenBindingKeyParameters
- java.lang.Object
-
- java.lang.Enum<TokenBindingKeyParameters>
-
- io.jans.as.model.crypto.binding.TokenBindingKeyParameters
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TokenBindingKeyParameters>
public enum TokenBindingKeyParameters extends java.lang.Enum<TokenBindingKeyParameters>
enum { rsa2048_pkcs1.5(0), rsa2048_pss(1), ecdsap256(2), (255) } TokenBindingKeyParameters;
- Author:
- Yuriy Zabrovarnyy
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ECDSAP256
RSA2048_PKCS1_5
RSA2048_PSS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getByteValue()
java.lang.String
getValue()
java.lang.String
toString()
static TokenBindingKeyParameters
valueOf(int byteValue)
Returns the enum constant of this type with the specified name.static TokenBindingKeyParameters
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TokenBindingKeyParameters[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RSA2048_PKCS1_5
public static final TokenBindingKeyParameters RSA2048_PKCS1_5
-
RSA2048_PSS
public static final TokenBindingKeyParameters RSA2048_PSS
-
ECDSAP256
public static final TokenBindingKeyParameters ECDSAP256
-
-
Method Detail
-
values
public static TokenBindingKeyParameters[] 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 (TokenBindingKeyParameters c : TokenBindingKeyParameters.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TokenBindingKeyParameters 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
-
getValue
public java.lang.String getValue()
-
getByteValue
public int getByteValue()
-
valueOf
public static TokenBindingKeyParameters valueOf(int byteValue) throws TokenBindingParseException
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:
byteValue
- 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 nullTokenBindingParseException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<TokenBindingKeyParameters>
-
-