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 java.lang.Object
- implements IPasswordService, org.springframework.beans.factory.InitializingBean
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CipherEncryptionService
public CipherEncryptionService()
setSalt
public void setSalt(java.lang.String value)
getSalt
public java.lang.String getSalt()
setAlgorithm
public void setAlgorithm(java.lang.String value)
getAlgorithm
public java.lang.String getAlgorithm()
setEncryptionKey
public void setEncryptionKey(java.lang.String value)
getEncryptionKey
public java.lang.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 java.lang.String decrypt(java.lang.String encryptedPassword)
throws PasswordServiceException
- Specified by:
decrypt
in interface IPasswordService
- Throws:
PasswordServiceException
encrypt
public java.lang.String encrypt(java.lang.String clearPassword)
throws PasswordServiceException
- Specified by:
encrypt
in interface IPasswordService
- Throws:
PasswordServiceException
main
public static void main(java.lang.String[] args)