Module io.helidon.security.jwt
Package io.helidon.security.jwt
Enum Class EncryptedJwt.SupportedAlgorithm
java.lang.Object
java.lang.Enum<EncryptedJwt.SupportedAlgorithm>
io.helidon.security.jwt.EncryptedJwt.SupportedAlgorithm
- All Implemented Interfaces:
Serializable,Comparable<EncryptedJwt.SupportedAlgorithm>,Constable
- Enclosing class:
- EncryptedJwt
Supported RSA cipher for content key encryption.
This cipher is using private key to decrypt encrypted content key with it.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRSA-OAEP declares that RSA/ECB/OAEPWithSHA-1AndMGF1Padding cipher will be used for content key encryption.RSA-OAEP-256 declares that RSA/ECB/OAEPWithSHA-256AndMGF1Padding cipher will be used for content key encryption.Deprecated, for removal: This API element is subject to removal in a future version.RSA1_5 is not supported for JWE key management. -
Method Summary
Modifier and TypeMethodDescriptiontoString()Returns the enum constant of this class with the specified name.static EncryptedJwt.SupportedAlgorithm[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
@Deprecated(forRemoval=true, since="3.2.17") public static final EncryptedJwt.SupportedAlgorithm RSA1_5Deprecated, for removal: This API element is subject to removal in a future version.RSA1_5 is not supported for JWE key management.RSA1_5 declares a legacy RSA/ECB/PKCS1Padding key management value retained for source compatibility.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Overrides:
toStringin classEnum<EncryptedJwt.SupportedAlgorithm>
-