org.mule.impl.security
Class PasswordBasedEncryptionStrategy
java.lang.Object
org.mule.impl.security.PasswordBasedEncryptionStrategy
- All Implemented Interfaces:
- Initialisable, UMOEncryptionStrategy
- public class PasswordBasedEncryptionStrategy
- extends java.lang.Object
- implements UMOEncryptionStrategy
PasswordBasedEncryptionStrategy
uses password-based encryption to
encrypt and decrypt data. Developers can set the salt, iternationCount
password and algorythm on this stragetgy, but on the password in plain text
is required.
- Version:
- $Revision: 1.4 $
- Author:
- Ross Mason
Field Summary |
protected static Log |
logger
logger used by this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
protected static transient Log logger
- logger used by this class
PasswordBasedEncryptionStrategy
public PasswordBasedEncryptionStrategy()
initialise
public void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal
error occurs during initialisation an
InitialisationException
should be thrown, causing the Mule instance to shutdown. If the error is
recoverable, say by retrying to connect, a RecoverableException
should be thrown. There is no guarantee that by throwing a Recoverable exception
that the Mule instance will not shut down.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to
shutdown
encrypt
public byte[] encrypt(byte[] data,
java.lang.Object info)
throws CryptoFailureException
- Specified by:
encrypt
in interface UMOEncryptionStrategy
- Throws:
CryptoFailureException
decrypt
public byte[] decrypt(byte[] data,
java.lang.Object info)
throws CryptoFailureException
- Specified by:
decrypt
in interface UMOEncryptionStrategy
- Throws:
CryptoFailureException
getAlgorithm
public java.lang.String getAlgorithm()
setAlgorithm
public void setAlgorithm(java.lang.String algorithm)
getSalt
public byte[] getSalt()
setSalt
public void setSalt(byte[] salt)
setSalt
public void setSalt(java.lang.String salt)
getIterationCount
public int getIterationCount()
setIterationCount
public void setIterationCount(int iterationCount)
getPassword
public char[] getPassword()
setPassword
public void setPassword(java.lang.String password)
setPassword
public void setPassword(char[] password)
toString
public java.lang.String toString()
isBase64Encoding
public boolean isBase64Encoding()
setBase64Encoding
public void setBase64Encoding(boolean base64Encoding)
Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.