org.apache.cxf.rs.security.oauth2.jwt
Enum Algorithm
java.lang.Object
java.lang.Enum<Algorithm>
org.apache.cxf.rs.security.oauth2.jwt.Algorithm
- All Implemented Interfaces:
- Serializable, Comparable<Algorithm>
public enum Algorithm
- extends Enum<Algorithm>
HmacSHA256
public static final Algorithm HmacSHA256
HmacSHA384
public static final Algorithm HmacSHA384
HmacSHA512
public static final Algorithm HmacSHA512
SHA256withRSA
public static final Algorithm SHA256withRSA
SHA384withRSA
public static final Algorithm SHA384withRSA
SHA512withRSA
public static final Algorithm SHA512withRSA
RSA_OAEP
public static final Algorithm RSA_OAEP
A128GCM
public static final Algorithm A128GCM
A192GCM
public static final Algorithm A192GCM
A256GCM
public static final Algorithm A256GCM
HMAC_SHA_256_JAVA
public static final String HMAC_SHA_256_JAVA
- See Also:
- Constant Field Values
HMAC_SHA_384_JAVA
public static final String HMAC_SHA_384_JAVA
- See Also:
- Constant Field Values
HMAC_SHA_512_JAVA
public static final String HMAC_SHA_512_JAVA
- See Also:
- Constant Field Values
RS_SHA_256_JAVA
public static final String RS_SHA_256_JAVA
- See Also:
- Constant Field Values
RS_SHA_384_JAVA
public static final String RS_SHA_384_JAVA
- See Also:
- Constant Field Values
RS_SHA_512_JAVA
public static final String RS_SHA_512_JAVA
- See Also:
- Constant Field Values
RSA_OAEP_ALGO_JAVA
public static final String RSA_OAEP_ALGO_JAVA
- See Also:
- Constant Field Values
RSA_OAEP_256_ALGO_JAVA
public static final String RSA_OAEP_256_ALGO_JAVA
- See Also:
- Constant Field Values
RSA_1_5_ALGO_JAVA
public static final String RSA_1_5_ALGO_JAVA
- See Also:
- Constant Field Values
AES_ALGO_JAVA
public static final String AES_ALGO_JAVA
- See Also:
- Constant Field Values
AES_GCM_ALGO_JAVA
public static final String AES_GCM_ALGO_JAVA
- See Also:
- Constant Field Values
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(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 name
NullPointerException - if the argument is null
getJwtName
public String getJwtName()
getJavaName
public String getJavaName()
getJavaAlgoName
public String getJavaAlgoName()
getKeySizeBits
public int getKeySizeBits()
toJwtName
public static String toJwtName(String javaName,
int keyBitSize)
toJavaName
public static String toJavaName(String jwtName)
toJavaAlgoNameOnly
public static String toJavaAlgoNameOnly(String jwtName)
stripAlgoProperties
public static String stripAlgoProperties(String javaName)
Apache CXF