org.pentaho.platform.engine.security
Class CipherEncryptionService

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface org.pentaho.platform.api.util.IPasswordService
IPASSWORD_SERVICE
 
Constructor Summary
CipherEncryptionService()
           
 
Method Summary
 void afterPropertiesSet()
           
 String decrypt(String encryptedPassword)
           
 String encrypt(String clearPassword)
           
 String getAlgorithm()
           
 String getEncryptionKey()
           
 int getIterations()
           
 String getSalt()
           
static void main(String[] args)
           
 void setAlgorithm(String value)
           
 void setEncryptionKey(String value)
           
 void setIterations(int value)
           
 void setSalt(String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CipherEncryptionService

public CipherEncryptionService()
Method Detail

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)