public enum GlobalBouncyCastleProvider extends Enum<GlobalBouncyCastleProvider>
Enum Constant and Description |
---|
INSTANCE
单例
|
Modifier and Type | Method and Description |
---|---|
Provider |
getProvider()
获取
Provider |
static void |
setUseBouncyCastle(boolean isUseBouncyCastle)
设置是否使用Bouncy Castle库
如果设置为false,表示强制关闭Bouncy Castle而使用JDK |
static GlobalBouncyCastleProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlobalBouncyCastleProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlobalBouncyCastleProvider INSTANCE
public static GlobalBouncyCastleProvider[] values()
for (GlobalBouncyCastleProvider c : GlobalBouncyCastleProvider.values()) System.out.println(c);
public static GlobalBouncyCastleProvider valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static void setUseBouncyCastle(boolean isUseBouncyCastle)
isUseBouncyCastle
- 是否使用BouncyCastle库Copyright © 2024. All rights reserved.