public class EncryptionAlgorithms extends Object
EncryptionAlgorithm instance.| Constructor and Description |
|---|
EncryptionAlgorithms() |
| Modifier and Type | Method and Description |
|---|---|
static SymmetricAlgorithmBuilder |
aes(byte[] keyPassword)
Creates a new builder for AES (128b) encryption.
|
static SymmetricAlgorithmBuilder |
aes(String keyPassword)
Creates a new builder for AES (128b) encryption.
|
static SymmetricAlgorithmBuilder |
aes256(byte[] keyPassword)
Creates a new builder for AES (256b) encryption.
|
static SymmetricAlgorithmBuilder |
aes256(String keyPassword)
Creates a new builder for AES (256b) encryption.
|
static void |
defaultFactories(EncryptionEnginesFactories factories)
Sets a new global factories for encryption engines.
|
static RSAAlgorithmBuilder |
rsa()
Creates a new builder for RSA encryption.
|
static SymmetricAlgorithmBuilder |
tripleDes(byte[] keyPassword)
Creates a new builder for 3DES encryption.
|
static SymmetricAlgorithmBuilder |
tripleDes(String keyPassword)
Creates a new builder for 3DES encryption.
|
public static void defaultFactories(EncryptionEnginesFactories factories)
CryptoEnginesFactories.factories - factories to be setpublic static SymmetricAlgorithmBuilder aes(byte[] keyPassword) throws IllegalArgumentException
defaultFactories(EncryptionEnginesFactories) which defaults to CryptoEnginesFactories
that uses standard Java API implementations (you can read CryptoEnginesFactories javadoc that
describes what parameters it uses for encryption algorithms).keyPassword - password for key derivationIllegalArgumentException - exception if passed key password is nullpublic static SymmetricAlgorithmBuilder aes(String keyPassword) throws IllegalArgumentException
defaultFactories(EncryptionEnginesFactories) which defaults to CryptoEnginesFactories
that uses standard Java API implementations (you can read CryptoEnginesFactories javadoc that
describes what parameters it uses for encryption algorithms).keyPassword - password for key derivationIllegalArgumentException - exception if passed key password is nullpublic static SymmetricAlgorithmBuilder aes256(byte[] keyPassword) throws IllegalArgumentException
defaultFactories(EncryptionEnginesFactories) which defaults to CryptoEnginesFactories
that uses standard Java API implementations (you can read CryptoEnginesFactories javadoc that
describes what parameters it uses for encryption algorithms).
Note that if you use default CryptoEnginesFactories, you may need JCE installed for AES-256.
keyPassword - password for key derivationIllegalArgumentException - exception if passed key password is nullpublic static SymmetricAlgorithmBuilder aes256(String keyPassword) throws IllegalArgumentException
defaultFactories(EncryptionEnginesFactories) which defaults to CryptoEnginesFactories
that uses standard Java API implementations (you can read CryptoEnginesFactories javadoc that
describes what parameters it uses for encryption algorithms) .
Note that if you use default CryptoEnginesFactories, you may need JCE installed for AES-256.
keyPassword - password for key derivationIllegalArgumentException - exception if passed key password is nullpublic static SymmetricAlgorithmBuilder tripleDes(byte[] keyPassword) throws IllegalArgumentException
defaultFactories(EncryptionEnginesFactories) which defaults to CryptoEnginesFactories
that uses standard Java API implementations (you can read CryptoEnginesFactories javadoc that
describes what parameters it uses for encryption algorithms).keyPassword - password for key derivationIllegalArgumentException - exception if passed key password is nullpublic static SymmetricAlgorithmBuilder tripleDes(String keyPassword) throws IllegalArgumentException
defaultFactories(EncryptionEnginesFactories) which defaults to CryptoEnginesFactories
that uses standard Java API implementations (you can read CryptoEnginesFactories javadoc that
describes what parameters it uses for encryption algorithms).keyPassword - password for key derivationIllegalArgumentException - exception if passed key password is nullpublic static RSAAlgorithmBuilder rsa()
defaultFactories(EncryptionEnginesFactories) which defaults to CryptoEnginesFactories
that uses standard Java API implementations (you can read CryptoEnginesFactories javadoc that
describes what parameters it uses for encryption algorithms).Copyright © 2016. All rights reserved.