Package io.smallrye.jwt.algorithm
Enum ContentEncryptionAlgorithm
- java.lang.Object
-
- java.lang.Enum<ContentEncryptionAlgorithm>
-
- io.smallrye.jwt.algorithm.ContentEncryptionAlgorithm
-
- All Implemented Interfaces:
Serializable,Comparable<ContentEncryptionAlgorithm>
public enum ContentEncryptionAlgorithm extends Enum<ContentEncryptionAlgorithm>
* JWT JSON Web Content Encryption Algorithms.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A128CBC_HS256A128GCMA192CBC_HS384A192GCMA256CBC_HS512A256GCM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ContentEncryptionAlgorithmfromAlgorithm(String algorithmName)StringgetAlgorithm()static ContentEncryptionAlgorithmvalueOf(String name)Returns the enum constant of this type with the specified name.static ContentEncryptionAlgorithm[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A128GCM
public static final ContentEncryptionAlgorithm A128GCM
-
A192GCM
public static final ContentEncryptionAlgorithm A192GCM
-
A256GCM
public static final ContentEncryptionAlgorithm A256GCM
-
A128CBC_HS256
public static final ContentEncryptionAlgorithm A128CBC_HS256
-
A192CBC_HS384
public static final ContentEncryptionAlgorithm A192CBC_HS384
-
A256CBC_HS512
public static final ContentEncryptionAlgorithm A256CBC_HS512
-
-
Method Detail
-
values
public static ContentEncryptionAlgorithm[] 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 (ContentEncryptionAlgorithm c : ContentEncryptionAlgorithm.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContentEncryptionAlgorithm 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
-
getAlgorithm
public String getAlgorithm()
-
fromAlgorithm
public static ContentEncryptionAlgorithm fromAlgorithm(String algorithmName)
-
-