cn.hutool.crypto.digest.HmacAlgorithm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hutool-all Show documentation
Show all versions of hutool-all Show documentation
Hutool是一个小而全的Java工具类库,通过静态方法封装,降低相关API的学习成本,提高工作效率,使Java拥有函数式语言般的优雅,让Java语言也可以“甜甜的”。
package cn.hutool.crypto.digest;
/**
* HMAC算法类型
* see: https://docs.oracle.com/javase/7/docs/technotes/guides/security/StandardNames.html#Mac
*
* @author Looly
*/
public enum HmacAlgorithm {
HmacMD5("HmacMD5"),
HmacSHA1("HmacSHA1"),
HmacSHA256("HmacSHA256"),
HmacSHA384("HmacSHA384"),
HmacSHA512("HmacSHA512"),
/** HmacSM3算法实现,需要BouncyCastle库支持 */
HmacSM3("HmacSM3"),
/** SM4 CMAC模式实现,需要BouncyCastle库支持 */
SM4CMAC("SM4CMAC");
private final String value;
HmacAlgorithm(String value) {
this.value = value;
}
public String getValue() {
return this.value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy