| Constructor and Description |
|---|
DefaultHMacEngine(String algorithm,
byte[] key)
构造
|
DefaultHMacEngine(String algorithm,
SecretKey key)
构造
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
digest(InputStream data,
int bufferLength)
生成摘要
|
Mac |
getMac()
获得
Mac |
DefaultHMacEngine |
init(String algorithm,
byte[] key)
初始化
|
DefaultHMacEngine |
init(String algorithm,
SecretKey key)
初始化
|
public DefaultHMacEngine(String algorithm, byte[] key)
algorithm - 算法key - 密钥public DefaultHMacEngine init(String algorithm, byte[] key)
algorithm - 算法key - 密钥public DefaultHMacEngine init(String algorithm, SecretKey key)
algorithm - 算法key - 密钥 SecretKeypublic byte[] digest(InputStream data, int bufferLength)
MacEnginedigest in interface MacEnginedata - InputStream 数据流bufferLength - 缓存长度Copyright © 2019. All rights reserved.