org.pentaho.platform.engine.security
Class CipherEncryptionService
java.lang.Object
org.pentaho.platform.engine.security.CipherEncryptionService
- All Implemented Interfaces:
- IPasswordService, org.springframework.beans.factory.InitializingBean
public class CipherEncryptionService
- extends Object
- implements IPasswordService, org.springframework.beans.factory.InitializingBean
CipherEncryptionService
public CipherEncryptionService()
setSalt
public void setSalt(String value)
getSalt
public String getSalt()
setAlgorithm
public void setAlgorithm(String value)
getAlgorithm
public String getAlgorithm()
setEncryptionKey
public void setEncryptionKey(String value)
getEncryptionKey
public String getEncryptionKey()
setIterations
public void setIterations(int value)
getIterations
public int getIterations()
afterPropertiesSet
public void afterPropertiesSet()
throws ObjectFactoryException
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
- Throws:
ObjectFactoryException
decrypt
public String decrypt(String encryptedPassword)
throws PasswordServiceException
- Specified by:
decrypt
in interface IPasswordService
- Throws:
PasswordServiceException
encrypt
public String encrypt(String clearPassword)
throws PasswordServiceException
- Specified by:
encrypt
in interface IPasswordService
- Throws:
PasswordServiceException
main
public static void main(String[] args)