public class JCEEncrypter extends Object implements Encrypter
| Constructor and Description |
|---|
JCEEncrypter(String transformation,
EncryptionKeyFactory keyFactory)
Initializes this class with a specific key factory and security provider instance, setting the password salt does not have to
be generated using a random IV.
|
JCEEncrypter(String transformation,
EncryptionKeyFactory keyFactory,
boolean useRandomIV)
Initializes this class with a specific key factory and security provider instance, allowing to determine if the password salt
has to be generated using a random IV.
|
JCEEncrypter(String transformation,
EncryptionKeyFactory keyFactory,
boolean useRandomIV,
Provider provider)
Initializes this class with a specific key factory and security provider instance, allowing to determine if the password salt
has to be generated using a random IV.
|
JCEEncrypter(String transformation,
EncryptionKeyFactory keyFactory,
Provider provider)
Initializes this class with a specific key factory and security provider instance, setting the password salt does not have to
be generated using a random IV.
|
JCEEncrypter(String transformation,
String provider,
EncryptionKeyFactory keyFactory)
Initializes this class with a specific key factory and security provider instance, setting the password salt does not have to
be generated using a random IV.
|
JCEEncrypter(String transformation,
String provider,
EncryptionKeyFactory keyFactory,
boolean useRandomIV)
Initializes this class with a specific key factory and security provider instance, allowing to determine if the password salt
has to be generated using a random IV.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] content)
Decrypts the given data
|
byte[] |
encrypt(byte[] content)
Encrypts the given data
|
protected AlgorithmParameterSpec |
getAlgorithmParameterSpec(IvParameterSpec ivParam) |
public JCEEncrypter(String transformation, EncryptionKeyFactory keyFactory)
transformation - The algorithm used for transformation.keyFactory - The key factory used for transformation.public JCEEncrypter(String transformation, String provider, EncryptionKeyFactory keyFactory)
transformation - The algorithm used for transformation.provider - The security provider name to use for this transformation.keyFactory - The key factory used for transformation.public JCEEncrypter(String transformation, EncryptionKeyFactory keyFactory, boolean useRandomIV)
transformation - The algorithm used for transformation.keyFactory - The key factory used for transformation.useRandomIV - A flag to determine if the password salt must be generated using a random IV.public JCEEncrypter(String transformation, EncryptionKeyFactory keyFactory, Provider provider)
transformation - The algorithm used for transformation.keyFactory - The key factory used for transformation.provider - The security provider used for transformation.public JCEEncrypter(String transformation, EncryptionKeyFactory keyFactory, boolean useRandomIV, Provider provider)
transformation - The algorithm used for transformation.keyFactory - The key factory used for transformation.useRandomIV - A flag to determine if the password salt must be generated using a random IV.provider - The security provider used for transformation.public JCEEncrypter(String transformation, String provider, EncryptionKeyFactory keyFactory, boolean useRandomIV)
transformation - The algorithm used for transformation.provider - The security provider name to use for this transformation.keyFactory - The key factory used for transformation.useRandomIV - A flag to determine if the password salt must be generated using a random IV.public byte[] decrypt(byte[] content)
throws MuleEncryptionException
Encrypterdecrypt in interface EncrypterMuleEncryptionExceptionpublic byte[] encrypt(byte[] content)
throws MuleEncryptionException
Encrypterencrypt in interface EncrypterMuleEncryptionExceptionprotected AlgorithmParameterSpec getAlgorithmParameterSpec(IvParameterSpec ivParam)
Copyright © 2024 MuleSoft, Inc.. All rights reserved.