Constructor and Description |
---|
MacEngineFactory() |
Modifier and Type | Method and Description |
---|---|
static MacEngine |
createEngine(String algorithm,
Key key)
根据给定算法和密钥生成对应的
MacEngine |
static MacEngine |
createEngine(String algorithm,
Key key,
AlgorithmParameterSpec spec)
根据给定算法和密钥生成对应的
MacEngine |
public static MacEngine createEngine(String algorithm, Key key)
MacEngine
algorithm
- 算法,见HmacAlgorithm
key
- 密钥MacEngine
public static MacEngine createEngine(String algorithm, Key key, AlgorithmParameterSpec spec)
MacEngine
algorithm
- 算法,见HmacAlgorithm
key
- 密钥spec
- specMacEngine
Copyright © 2024. All rights reserved.