public class CryptoFactories extends Object implements EncryptionFactories
Factories for engines that use Java standard API (javax.crypto) as encryption implementations. This factory creates these algorithms:
Note that if you use AES-256 and stronger ciphers, JCE installation is required for this factory.
| Constructor and Description |
|---|
CryptoFactories() |
| Modifier and Type | Method and Description |
|---|---|
SymmetricEncryptionEngineFactory<ByteArray> |
aes()
Creates a new engine factory for AES (128 bits).
|
SymmetricEncryptionEngineFactory<ByteArray> |
aes256()
Creates a new engine factory for AES (256 bits).
|
EncryptionKeyFactory<ByteArray,DerivedKeyParams> |
derivedKeyFactory()
Creates a new key factory for derived keys (typically by hash function).
|
AsymmetricEncryptionEngineFactory<RSAKeyParams,RSAKeyParams> |
rsa()
Creates a new engine factory for RSA.
|
SymmetricEncryptionEngineFactory<ByteArray> |
tripleDes()
Creates a new engine factory for Triple DES.
|
public EncryptionKeyFactory<ByteArray,DerivedKeyParams> derivedKeyFactory()
EncryptionFactoriesSymmetricEncryptionEngineFactory (AES, 3DES).
It is recommended to use PBKDF2 (HMAC with SHA-1) as it is used for default crypto implementation.derivedKeyFactory in interface EncryptionFactoriespublic SymmetricEncryptionEngineFactory<ByteArray> aes()
EncryptionFactoriesaes in interface EncryptionFactoriespublic SymmetricEncryptionEngineFactory<ByteArray> aes256()
EncryptionFactoriesaes256 in interface EncryptionFactoriespublic SymmetricEncryptionEngineFactory<ByteArray> tripleDes()
EncryptionFactoriestripleDes in interface EncryptionFactoriespublic AsymmetricEncryptionEngineFactory<RSAKeyParams,RSAKeyParams> rsa()
EncryptionFactoriesrsa in interface EncryptionFactoriesCopyright © 2019. All rights reserved.