public enum SignatureAlgorithm extends Enum<SignatureAlgorithm>
Enum Constant and Description |
---|
ES256 |
ES384 |
ES512 |
HS256 |
HS384 |
HS512 |
NONE |
PS256 |
PS384 |
PS512 |
RS256 |
RS384 |
RS512 |
Modifier and Type | Method and Description |
---|---|
static SignatureAlgorithm |
getAlgorithm(String algo) |
String |
getJavaAlgoName() |
String |
getJavaName() |
String |
getJwaName() |
int |
getKeySizeBits() |
static boolean |
isPublicKeyAlgorithm(SignatureAlgorithm sigAlgorithm) |
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.
|
public static final SignatureAlgorithm HS256
public static final SignatureAlgorithm HS384
public static final SignatureAlgorithm HS512
public static final SignatureAlgorithm RS256
public static final SignatureAlgorithm RS384
public static final SignatureAlgorithm RS512
public static final SignatureAlgorithm PS256
public static final SignatureAlgorithm PS384
public static final SignatureAlgorithm PS512
public static final SignatureAlgorithm ES256
public static final SignatureAlgorithm ES384
public static final SignatureAlgorithm ES512
public static final SignatureAlgorithm NONE
public static SignatureAlgorithm[] values()
for (SignatureAlgorithm c : SignatureAlgorithm.values()) System.out.println(c);
public static SignatureAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getJwaName()
public String getJavaName()
public String getJavaAlgoName()
public int getKeySizeBits()
public static SignatureAlgorithm getAlgorithm(String algo)
public static boolean isPublicKeyAlgorithm(SignatureAlgorithm sigAlgorithm)
Apache CXF