public class JCECipherProvider extends Object implements CipherProvider
CipherProvider that gets queries from the underlying Java Cryptographic Extension (JCE) facilities,
via Cipher.getInstance(String, Provider). If the preferred JCE provider is not available, then falls back
on any provider that can supply the given transformation.| Constructor and Description |
|---|
JCECipherProvider(String transformation,
Provider preferredProvider)
Initialises the cipher provider with the given cipher transformation and preferred provider.
|
JCECipherProvider(String transformation,
String preferredProvider)
Initialises the cipher provider with the given cipher transformation and preferred provider.
|
| Modifier and Type | Method and Description |
|---|---|
Cipher |
getCipher()
Attempts to get a cipher matching the chosen transformation from the underlying JCE facilities.
|
public JCECipherProvider(String transformation, String preferredProvider)
Cipher.getInstance(String, String) for details on valid values for these parameters.transformation - the cipher transformation specification. Cannot be null.preferredProvider - the preferred crypto provider such as "SunJCE". Will be ignored if null or no such
provider exists.public JCECipherProvider(String transformation, Provider preferredProvider)
Cipher.getInstance(String, java.security.Provider) for details on valid values for these parameters.transformation - the cipher transformation specification. Cannot be null.preferredProvider - the preferred crypto provider. May be null, in which case it is ignored.public Cipher getCipher()
getCipher in interface CipherProviderCopyright © 2010–2023 Open Identity Platform Community. All rights reserved.