org.apache.cxf.rs.security.jose.jwa
Enum Algorithm
java.lang.Object
java.lang.Enum<Algorithm>
org.apache.cxf.rs.security.jose.jwa.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
SHA256withECDSA
public static final Algorithm SHA256withECDSA
SHA384withECDSA
public static final Algorithm SHA384withECDSA
SHA512withECDSA
public static final Algorithm SHA512withECDSA
RSA_OAEP
public static final Algorithm RSA_OAEP
RSA_OAEP_256
public static final Algorithm RSA_OAEP_256
RSA_1_5
public static final Algorithm RSA_1_5
A128KW
public static final Algorithm A128KW
A192KW
public static final Algorithm A192KW
A256KW
public static final Algorithm A256KW
A128GCMKW
public static final Algorithm A128GCMKW
A192GCMKW
public static final Algorithm A192GCMKW
A256GCMKW
public static final Algorithm A256GCMKW
PBES2_HS256_A128KW
public static final Algorithm PBES2_HS256_A128KW
PBES2_HS384_A192KW
public static final Algorithm PBES2_HS384_A192KW
PBES2_HS512_A256KW
public static final Algorithm PBES2_HS512_A256KW
ECDH_ES_A128KW
public static final Algorithm ECDH_ES_A128KW
ECDH_ES_A192KW
public static final Algorithm ECDH_ES_A192KW
ECDH_ES_A256KW
public static final Algorithm ECDH_ES_A256KW
A128GCM
public static final Algorithm A128GCM
A192GCM
public static final Algorithm A192GCM
A256GCM
public static final Algorithm A256GCM
A128CBC_HS256
public static final Algorithm A128CBC_HS256
A192CBC_HS384
public static final Algorithm A192CBC_HS384
A256CBC_HS512
public static final Algorithm A256CBC_HS512
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
PS_SHA_256_JAVA
public static final String PS_SHA_256_JAVA
- See Also:
- Constant Field Values
PS_SHA_384_JAVA
public static final String PS_SHA_384_JAVA
- See Also:
- Constant Field Values
PS_SHA_512_JAVA
public static final String PS_SHA_512_JAVA
- See Also:
- Constant Field Values
ES_SHA_256_JAVA
public static final String ES_SHA_256_JAVA
- See Also:
- Constant Field Values
ES_SHA_384_JAVA
public static final String ES_SHA_384_JAVA
- See Also:
- Constant Field Values
ES_SHA_512_JAVA
public static final String ES_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_WRAP_ALGO_JAVA
public static final String AES_WRAP_ALGO_JAVA
- See Also:
- Constant Field Values
AES_GCM_ALGO_JAVA
public static final String AES_GCM_ALGO_JAVA
- See Also:
- Constant Field Values
AES_CBC_ALGO_JAVA
public static final String AES_CBC_ALGO_JAVA
- See Also:
- Constant Field Values
HMAC_SIGN_SET
public static final Set<String> HMAC_SIGN_SET
RSA_SHA_SIGN_SET
public static final Set<String> RSA_SHA_SIGN_SET
RSA_SHA_PS_SIGN_SET
public static final Set<String> RSA_SHA_PS_SIGN_SET
EC_SHA_SIGN_SET
public static final Set<String> EC_SHA_SIGN_SET
RSA_CEK_SET
public static final Set<String> RSA_CEK_SET
AES_GCM_CEK_SET
public static final Set<String> AES_GCM_CEK_SET
AES_GCM_KW_SET
public static final Set<String> AES_GCM_KW_SET
AES_KW_SET
public static final Set<String> AES_KW_SET
ACBC_HS_SET
public static final Set<String> ACBC_HS_SET
PBES_HS_SET
public static final Set<String> PBES_HS_SET
ECDH_ES_SET
public static final Set<String> ECDH_ES_SET
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)
isRsa
public static boolean isRsa(String algo)
isRsaKeyWrap
public static boolean isRsaKeyWrap(String algo)
isAesKeyWrap
public static boolean isAesKeyWrap(String algo)
isAesGcmKeyWrap
public static boolean isAesGcmKeyWrap(String algo)
isPbesHsWrap
public static boolean isPbesHsWrap(String algo)
isEcdhEsWrap
public static boolean isEcdhEsWrap(String algo)
isAesGcm
public static boolean isAesGcm(String algo)
isAesCbcHmac
public static boolean isAesCbcHmac(String algo)
isHmacSign
public static boolean isHmacSign(String algo)
isOctet
public static boolean isOctet(String algo)
isRsaSign
public static boolean isRsaSign(String algo)
isRsaShaSign
public static boolean isRsaShaSign(String algo)
isRsaShaPsSign
public static boolean isRsaShaPsSign(String algo)
isEcDsaSign
public static boolean isEcDsaSign(String algo)
Apache CXF