public interface EncryptionFactories
EncryptionAlgorithms.
If you want custom implementation, this is the interface you should implement and later set it globally by
EncryptionAlgorithms.defaultFactories(EncryptionFactories).EncryptionAlgorithms| 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.
|
EncryptionKeyFactory<ByteArray,DerivedKeyParams> derivedKeyFactory()
SymmetricEncryptionEngineFactory (AES, 3DES).
It is recommended to use PBKDF2 (HMAC with SHA-1) as it is used for default crypto implementation.SymmetricEncryptionEngineFactory<ByteArray> aes()
SymmetricEncryptionEngineFactory<ByteArray> aes256()
SymmetricEncryptionEngineFactory<ByteArray> tripleDes()
AsymmetricEncryptionEngineFactory<RSAKeyParams,RSAKeyParams> rsa()
Copyright © 2019. All rights reserved.