public enum SigningAlgorithm extends Enum<SigningAlgorithm>
| Modifier and Type | Method and Description |
|---|---|
static SigningAlgorithm |
forName(String alg) |
boolean |
requiresKeyPair() |
boolean |
requiresSharedSecret() |
static SigningAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SigningAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SigningAlgorithm HS256
public static final SigningAlgorithm RS256
public static SigningAlgorithm[] values()
for (SigningAlgorithm c : SigningAlgorithm.values()) System.out.println(c);
public static SigningAlgorithm 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 static SigningAlgorithm forName(String alg) throws JwsUnsupportedAlgorithmException
JwsUnsupportedAlgorithmExceptionpublic boolean requiresSharedSecret()
public boolean requiresKeyPair()
Copyright © 2023 Atlassian. All rights reserved.