public enum AuthSignMethod extends java.lang.Enum<AuthSignMethod>
Enum Constant and Description |
---|
HMACMD5 |
SHA1 |
SHA256 |
SHA384 |
SHA512 |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMethod() |
static java.lang.String |
sign(AuthSignMethod method,
java.lang.String signContent,
java.lang.String secret)
获取签名值
|
static AuthSignMethod |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AuthSignMethod[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AuthSignMethod HMACMD5
public static final AuthSignMethod SHA1
public static final AuthSignMethod SHA256
public static final AuthSignMethod SHA384
public static final AuthSignMethod SHA512
public static AuthSignMethod[] values()
for (AuthSignMethod c : AuthSignMethod.values()) System.out.println(c);
public static AuthSignMethod valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getMethod()
public static java.lang.String sign(AuthSignMethod method, java.lang.String signContent, java.lang.String secret)
method
- 签名方法signContent
- 签名内容secret
- 签名密钥