public static enum CryptoCipherFactory.CipherProvider extends Enum<CryptoCipherFactory.CipherProvider>
Usage:
props.setProperty(CryptoCipherFactory.CLASSES_KEY, CipherProvider.OPENSSL.getClassName()); props.setProperty(...); // if required by the implementation cipher = CryptoCipherFactory.getInstance(transformation, props);
Enum Constant and Description |
---|
JCE
The JCE cipher implementation from the JVM
|
OPENSSL
The OpenSSL cipher implementation (using JNI)
|
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Gets the class name of the provider.
|
Class<? extends CryptoCipher> |
getImplClass()
Gets the implementation class of the provider.
|
static CryptoCipherFactory.CipherProvider |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CryptoCipherFactory.CipherProvider[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CryptoCipherFactory.CipherProvider OPENSSL
This implementation does not use any properties
public static final CryptoCipherFactory.CipherProvider JCE
uses the property CryptoCipherFactory.JCE_PROVIDER_KEY
to define the provider name, if present.
public static CryptoCipherFactory.CipherProvider[] values()
for (CryptoCipherFactory.CipherProvider c : CryptoCipherFactory.CipherProvider.values()) System.out.println(c);
public static CryptoCipherFactory.CipherProvider 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 String getClassName()
public Class<? extends CryptoCipher> getImplClass()
Copyright © 2016–2022 The Apache Software Foundation. All rights reserved.