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);
??????? |
---|
JCE
The JCE cipher implementation from the JVM
uses the property
CryptoCipherFactory.JCE_PROVIDER_KEY
to define the provider name, if present. |
OPENSSL
The OpenSSL cipher implementation (using JNI)
This implementation does not use any properties
|
?????? | ????? |
---|---|
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)
??????????????????
|
static CryptoCipherFactory.CipherProvider[] |
values()
???????????????, ??
??????????
|
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
- ????????????IllegalArgumentException
- ??????????????????NullPointerException
- ???????public String getClassName()
public Class<? extends CryptoCipher> getImplClass()
Copyright © 2016 The Apache Software Foundation. All rights reserved.