public final class EngineFactory<T_WRAPPER extends EngineWrapper<JcePrimitiveT>,JcePrimitiveT> extends Object
This class contains a lot of static factories and static functions returning factories: these
allow customization and hide the typing complexity in this class. To use this class, import it,
and replace your Cipher.getInstance(...) with
EngineFactory.CIPHER.getInstance(...).
| Modifier and Type | Field and Description |
|---|---|
static EngineFactory<EngineWrapper.TCipher,Cipher> |
CIPHER |
static EngineFactory<EngineWrapper.TKeyAgreement,KeyAgreement> |
KEY_AGREEMENT |
static EngineFactory<EngineWrapper.TKeyFactory,KeyFactory> |
KEY_FACTORY |
static EngineFactory<EngineWrapper.TKeyPairGenerator,KeyPairGenerator> |
KEY_PAIR_GENERATOR |
static EngineFactory<EngineWrapper.TMac,Mac> |
MAC |
static EngineFactory<EngineWrapper.TMessageDigest,MessageDigest> |
MESSAGE_DIGEST |
static EngineFactory<EngineWrapper.TSignature,Signature> |
SIGNATURE |
| Constructor and Description |
|---|
EngineFactory(T_WRAPPER instanceBuilder) |
| Modifier and Type | Method and Description |
|---|---|
JcePrimitiveT |
getInstance(String algorithm) |
static List<Provider> |
toProviderList(String... providerNames)
Helper function to get a list of Providers from names.
|
public static final EngineFactory<EngineWrapper.TCipher,Cipher> CIPHER
public static final EngineFactory<EngineWrapper.TMac,Mac> MAC
public static final EngineFactory<EngineWrapper.TSignature,Signature> SIGNATURE
public static final EngineFactory<EngineWrapper.TMessageDigest,MessageDigest> MESSAGE_DIGEST
public static final EngineFactory<EngineWrapper.TKeyAgreement,KeyAgreement> KEY_AGREEMENT
public static final EngineFactory<EngineWrapper.TKeyPairGenerator,KeyPairGenerator> KEY_PAIR_GENERATOR
public static final EngineFactory<EngineWrapper.TKeyFactory,KeyFactory> KEY_FACTORY
public EngineFactory(T_WRAPPER instanceBuilder)
public static List<Provider> toProviderList(String... providerNames)
public JcePrimitiveT getInstance(String algorithm) throws GeneralSecurityException
GeneralSecurityException