@ThreadSafe public class CipherHelper extends Object
| Constructor and Description |
|---|
CipherHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Cipher |
getInstance(String name,
Provider provider)
Instantiates a cipher with an (optional) JCA provider.
|
public CipherHelper()
public static Cipher getInstance(String name, Provider provider) throws NoSuchAlgorithmException, NoSuchPaddingException
name - The name of the cipher. Must not be null.provider - The JCA provider, or null to use the default
one.NoSuchAlgorithmExceptionNoSuchPaddingExceptionCopyright © 2020 Connect2id Ltd.. All rights reserved.