public enum HmacAlgorithm extends Enum<HmacAlgorithm>
Enum Constant and Description |
---|
HmacMD5 |
HmacSHA1 |
HmacSHA256 |
HmacSHA384 |
HmacSHA512 |
HmacSM3
HmacSM3算法实现,需要BouncyCastle库支持
|
SM4CMAC
SM4 CMAC模式实现,需要BouncyCastle库支持
|
Modifier and Type | Method and Description |
---|---|
String |
getValue() |
static HmacAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HmacAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HmacAlgorithm HmacMD5
public static final HmacAlgorithm HmacSHA1
public static final HmacAlgorithm HmacSHA256
public static final HmacAlgorithm HmacSHA384
public static final HmacAlgorithm HmacSHA512
public static final HmacAlgorithm HmacSM3
public static final HmacAlgorithm SM4CMAC
public static HmacAlgorithm[] values()
for (HmacAlgorithm c : HmacAlgorithm.values()) System.out.println(c);
public static HmacAlgorithm 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 getValue()
Copyright © 2024. All rights reserved.