public class JCEEncrypter extends Object implements Encrypter
| Constructor and Description |
|---|
JCEEncrypter(String transformation,
EncryptionKeyFactory keyFactory) |
JCEEncrypter(String transformation,
String provider,
EncryptionKeyFactory keyFactory) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(byte[] content)
Decrypts the given data
|
byte[] |
encrypt(byte[] content)
Encrypts the given data
|
protected void |
initCipher(Cipher cipher,
Key cipherKey,
int mode) |
public JCEEncrypter(String transformation, EncryptionKeyFactory keyFactory)
public JCEEncrypter(String transformation, String provider, EncryptionKeyFactory keyFactory)
public byte[] decrypt(byte[] content)
throws MuleEncryptionException
Encrypterdecrypt in interface EncrypterMuleEncryptionExceptionpublic byte[] encrypt(byte[] content)
throws MuleEncryptionException
Encrypterencrypt in interface EncrypterMuleEncryptionExceptionprotected void initCipher(Cipher cipher, Key cipherKey, int mode) throws InvalidKeyException, InvalidAlgorithmParameterException
Copyright © 2019 MuleSoft, Inc.. All rights reserved.