- java.lang.Object
-
- java.lang.Enum<EncryptedJwt.SupportedAlgorithm>
-
- io.helidon.security.jwt.EncryptedJwt.SupportedAlgorithm
-
- All Implemented Interfaces:
Serializable
,Comparable<EncryptedJwt.SupportedAlgorithm>
- Enclosing class:
- EncryptedJwt
public static enum EncryptedJwt.SupportedAlgorithm extends Enum<EncryptedJwt.SupportedAlgorithm>
Supported RSA cipher for content key encryption. This cipher is using private key to decrypt encrypted content key with it.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description RSA_OAEP
RSA-OAEP declares that RSA/ECB/OAEPWithSHA-1AndMGF1Padding cipher will be used for content key encryption.RSA_OAEP_256
RSA-OAEP-256 declares that RSA/ECB/OAEPWithSHA-256AndMGF1Padding cipher will be used for content key encryption.RSA1_5
RSA1_5 declares that RSA/ECB/PKCS1Padding cipher will be used for content key encryption.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
static EncryptedJwt.SupportedAlgorithm
valueOf(String name)
Returns the enum constant of this type with the specified name.static EncryptedJwt.SupportedAlgorithm[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RSA_OAEP
public static final EncryptedJwt.SupportedAlgorithm RSA_OAEP
RSA-OAEP declares that RSA/ECB/OAEPWithSHA-1AndMGF1Padding cipher will be used for content key encryption.
-
RSA_OAEP_256
public static final EncryptedJwt.SupportedAlgorithm RSA_OAEP_256
RSA-OAEP-256 declares that RSA/ECB/OAEPWithSHA-256AndMGF1Padding cipher will be used for content key encryption.
-
RSA1_5
public static final EncryptedJwt.SupportedAlgorithm RSA1_5
RSA1_5 declares that RSA/ECB/PKCS1Padding cipher will be used for content key encryption.
-
-
Method Detail
-
values
public static EncryptedJwt.SupportedAlgorithm[] 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 (EncryptedJwt.SupportedAlgorithm c : EncryptedJwt.SupportedAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EncryptedJwt.SupportedAlgorithm valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
public String toString()
- Overrides:
toString
in classEnum<EncryptedJwt.SupportedAlgorithm>
-
-