public enum BouncyCastleProvider extends Enum<BouncyCastleProvider>
| 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 BouncyCastleProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BouncyCastleProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BouncyCastleProvider INSTANCE
public static BouncyCastleProvider[] values()
for (BouncyCastleProvider c : BouncyCastleProvider.values()) System.out.println(c);
public static BouncyCastleProvider 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 - booleanCopyright © 2019. All rights reserved.