public class DigesterFactory extends Object
Modifier and Type | Method and Description |
---|---|
Digester |
createDigester()
创建
Digester |
MessageDigest |
createMessageDigester()
|
static DigesterFactory |
of(MessageDigest messageDigest)
创建工厂
|
static DigesterFactory |
of(String algorithm)
创建工厂,使用
GlobalBouncyCastleProvider 找到的提供方。 |
static DigesterFactory |
ofJdk(String algorithm)
创建工厂
|
public static DigesterFactory ofJdk(String algorithm)
algorithm
- 算法public static DigesterFactory of(String algorithm)
GlobalBouncyCastleProvider
找到的提供方。algorithm
- 算法public static DigesterFactory of(MessageDigest messageDigest)
messageDigest
- MessageDigest
,可以通过SecureUtil.createMessageDigest(String)
创建public MessageDigest createMessageDigester()
MessageDigest
Copyright © 2024. All rights reserved.