public enum AuthType extends Enum<AuthType>
| Enum Constant and Description |
|---|
SHA256_RSA2048
SHA256-RSA2048签名算法
|
SM2_WITH_SM3
国密SM签名算法
|
| Modifier and Type | Field and Description |
|---|---|
private String |
alg |
private String |
signType |
private String |
transformation |
| Modifier and Type | Method and Description |
|---|---|
String |
alg()
Gets alg.
|
static AuthType |
fromSignType(String signType)
From sign type request auth type.
|
String |
toAuthHeader(String token)
Auth prefix string.
|
String |
transformation()
Transformation string.
|
static AuthType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AuthType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthType SHA256_RSA2048
public static final AuthType SM2_WITH_SM3
private final String alg
private final String signType
private final String transformation
public static AuthType[] values()
for (AuthType c : AuthType.values()) System.out.println(c);
public static AuthType 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 alg()
public String transformation()
public static AuthType fromSignType(String signType)
signType - the sign typeCopyright © 2023. All rights reserved.