Files
hutool/hutool-crypto/src/main/java/cn/hutool/crypto/ProviderFactory.java
2021-09-09 16:14:37 +08:00

27 lines
620 B
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package cn.hutool.crypto;
import java.security.Provider;
/**
* Provider对象生产工厂类
*
* <pre>
* 1. 调用{@link #createBouncyCastleProvider()} 用于新建一个org.bouncycastle.jce.provider.BouncyCastleProvider对象
* </pre>
*
* @author looly
* @since 4.2.1
*/
public class ProviderFactory {
/**
* 创建Bouncy Castle 提供者<br>
* 如果用户未引入bouncycastle库则此方法抛出{@link NoClassDefFoundError} 异常
*
* @return {@link Provider}
*/
public static Provider createBouncyCastleProvider() {
return new org.bouncycastle.jce.provider.BouncyCastleProvider();
}
}