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

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

public enum SignatureAlgorithm
extends Enum<SignatureAlgorithm>


Enum Constant Summary
ES256
           
ES384
           
ES512
           
HS256
           
HS384
           
HS512
           
PLAIN
           
PS256
           
PS384
           
PS512
           
RS256
           
RS384
           
RS512
           
 
Method Summary
static SignatureAlgorithm getAlgorithm(String algo)
           
 String getJavaAlgoName()
           
 String getJavaName()
           
 String getJwaName()
           
 int getKeySizeBits()
           
static SignatureAlgorithm valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SignatureAlgorithm[] 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

HS256

public static final SignatureAlgorithm HS256

HS384

public static final SignatureAlgorithm HS384

HS512

public static final SignatureAlgorithm HS512

RS256

public static final SignatureAlgorithm RS256

RS384

public static final SignatureAlgorithm RS384

RS512

public static final SignatureAlgorithm RS512

PS256

public static final SignatureAlgorithm PS256

PS384

public static final SignatureAlgorithm PS384

PS512

public static final SignatureAlgorithm PS512

ES256

public static final SignatureAlgorithm ES256

ES384

public static final SignatureAlgorithm ES384

ES512

public static final SignatureAlgorithm ES512

PLAIN

public static final SignatureAlgorithm PLAIN
Method Detail

values

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

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

valueOf

public static SignatureAlgorithm 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 SignatureAlgorithm getAlgorithm(String algo)


Apache CXF