Class CipherEncryptionService

  • All Implemented Interfaces:
    org.pentaho.platform.api.util.IPasswordService, org.springframework.beans.factory.InitializingBean

    public class CipherEncryptionService
    extends Object
    implements org.pentaho.platform.api.util.IPasswordService, org.springframework.beans.factory.InitializingBean
    • 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 org.pentaho.platform.api.engine.ObjectFactoryException
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        org.pentaho.platform.api.engine.ObjectFactoryException
      • decrypt

        public String decrypt​(String encryptedPassword)
                       throws org.pentaho.platform.api.util.PasswordServiceException
        Specified by:
        decrypt in interface org.pentaho.platform.api.util.IPasswordService
        Throws:
        org.pentaho.platform.api.util.PasswordServiceException
      • encrypt

        public String encrypt​(String clearPassword)
                       throws org.pentaho.platform.api.util.PasswordServiceException
        Specified by:
        encrypt in interface org.pentaho.platform.api.util.IPasswordService
        Throws:
        org.pentaho.platform.api.util.PasswordServiceException
      • main

        public static void main​(String[] args)