org.apache.cxf.rs.security.jose.jwa
Enum KeyAlgorithm

java.lang.Object
  extended by java.lang.Enum<KeyAlgorithm>
      extended by org.apache.cxf.rs.security.jose.jwa.KeyAlgorithm
All Implemented Interfaces:
Serializable, Comparable<KeyAlgorithm>

public enum KeyAlgorithm
extends Enum<KeyAlgorithm>


Enum Constant Summary
A128GCMKW
           
A128KW
           
A192GCMKW
           
A192KW
           
A256GCMKW
           
A256KW
           
ECDH_ES_A128KW
           
ECDH_ES_A192KW
           
ECDH_ES_A256KW
           
PBES2_HS256_A128KW
           
PBES2_HS384_A192KW
           
PBES2_HS512_A256KW
           
RSA_1_5
           
RSA_OAEP
           
RSA_OAEP_256
           
 
Method Summary
static KeyAlgorithm getAlgorithm(String algo)
           
 String getJavaAlgoName()
           
 String getJavaName()
           
 String getJwaName()
           
 int getKeySizeBits()
           
static KeyAlgorithm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static KeyAlgorithm[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RSA_OAEP

public static final KeyAlgorithm RSA_OAEP

RSA_OAEP_256

public static final KeyAlgorithm RSA_OAEP_256

RSA_1_5

public static final KeyAlgorithm RSA_1_5

A128KW

public static final KeyAlgorithm A128KW

A192KW

public static final KeyAlgorithm A192KW

A256KW

public static final KeyAlgorithm A256KW

A128GCMKW

public static final KeyAlgorithm A128GCMKW

A192GCMKW

public static final KeyAlgorithm A192GCMKW

A256GCMKW

public static final KeyAlgorithm A256GCMKW

PBES2_HS256_A128KW

public static final KeyAlgorithm PBES2_HS256_A128KW

PBES2_HS384_A192KW

public static final KeyAlgorithm PBES2_HS384_A192KW

PBES2_HS512_A256KW

public static final KeyAlgorithm PBES2_HS512_A256KW

ECDH_ES_A128KW

public static final KeyAlgorithm ECDH_ES_A128KW

ECDH_ES_A192KW

public static final KeyAlgorithm ECDH_ES_A192KW

ECDH_ES_A256KW

public static final KeyAlgorithm ECDH_ES_A256KW
Method Detail

values

public static KeyAlgorithm[] 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 (KeyAlgorithm c : KeyAlgorithm.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static KeyAlgorithm 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

getJwaName

public String getJwaName()

getJavaName

public String getJavaName()

getJavaAlgoName

public String getJavaAlgoName()

getKeySizeBits

public int getKeySizeBits()

getAlgorithm

public static KeyAlgorithm getAlgorithm(String algo)


Apache CXF