public class PasswordBasedEncryptionStrategy extends AbstractJCEEncryptionStrategy
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ALGORITHM |
static int |
DEFAULT_ITERATION_COUNT |
algorithm, base64Encoding, decryptCipher, encryptCipher, keySpec, logger, secretKey| Constructor and Description |
|---|
PasswordBasedEncryptionStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected AlgorithmParameterSpec |
createAlgorithmParameterSpec() |
protected KeySpec |
createKeySpec() |
int |
getIterationCount() |
byte[] |
getSalt() |
protected SecretKey |
getSecretKey() |
void |
initialise() |
void |
setIterationCount(int iterationCount) |
void |
setPassword(String password) |
void |
setSalt(byte[] salt) |
createAndInitCiphers, decrypt, decrypt, encrypt, encrypt, getAlgorithm, isBase64Encoding, setAlgorithm, setBase64Encoding, toStringgetName, setNamepublic static final String DEFAULT_ALGORITHM
public static final int DEFAULT_ITERATION_COUNT
public void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableinitialise in class AbstractJCEEncryptionStrategyorg.mule.runtime.api.lifecycle.InitialisationExceptionprotected KeySpec createKeySpec()
createKeySpec in class AbstractJCEEncryptionStrategyprotected AlgorithmParameterSpec createAlgorithmParameterSpec()
createAlgorithmParameterSpec in class AbstractJCEEncryptionStrategypublic byte[] getSalt()
public void setSalt(byte[] salt)
public int getIterationCount()
public void setIterationCount(int iterationCount)
public void setPassword(String password)
protected SecretKey getSecretKey() throws GeneralSecurityException
getSecretKey in class AbstractJCEEncryptionStrategyGeneralSecurityExceptionCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.