public class HMac extends Mac
Constructor and Description |
---|
HMac(HmacAlgorithm algorithm)
构造,自动生成密钥
|
HMac(HmacAlgorithm algorithm,
byte[] key)
构造
|
HMac(HmacAlgorithm algorithm,
Key key)
构造
|
HMac(MacEngine engine)
构造
|
HMac(String algorithm,
byte[] key)
构造
|
HMac(String algorithm,
Key key)
构造
|
HMac(String algorithm,
Key key,
AlgorithmParameterSpec spec)
构造
|
digest, digest, digest, digest, digest, digest, digestBase64, digestBase64, digestHex, digestHex, digestHex, digestHex, digestHex, digestHex, getAlgorithm, getEngine, getMacLength, verify
public HMac(HmacAlgorithm algorithm)
algorithm
- 算法 HmacAlgorithm
public HMac(HmacAlgorithm algorithm, byte[] key)
algorithm
- 算法 HmacAlgorithm
key
- 密钥public HMac(HmacAlgorithm algorithm, Key key)
algorithm
- 算法 HmacAlgorithm
key
- 密钥public HMac(String algorithm, byte[] key)
algorithm
- 算法key
- 密钥public HMac(String algorithm, Key key, AlgorithmParameterSpec spec)
algorithm
- 算法key
- 密钥spec
- AlgorithmParameterSpec
public HMac(MacEngine engine)
engine
- MAC算法实现引擎Copyright © 2024. All rights reserved.