org.pentaho.platform.engine.security
Class DefaultPentahoPasswordEncoder

java.lang.Object
  extended by org.pentaho.platform.engine.security.DefaultPentahoPasswordEncoder
All Implemented Interfaces:
org.springframework.security.providers.encoding.PasswordEncoder

public class DefaultPentahoPasswordEncoder
extends Object
implements org.springframework.security.providers.encoding.PasswordEncoder

Default password encoder for the BI Server.

This encoder Base64-encodes the raw password.

This class is instantiated by Pentaho Admin Console so there should not be a dependency on classes to which PAC will not have access.

This implementation of password encoding is completely independent of any datasource connection password encoding.

Author:
mlowery

Constructor Summary
DefaultPentahoPasswordEncoder()
           
 
Method Summary
 String encodePassword(String rawPass, Object salt)
           
 boolean isPasswordValid(String encPass, String rawPass, Object salt)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPentahoPasswordEncoder

public DefaultPentahoPasswordEncoder()
Method Detail

encodePassword

public String encodePassword(String rawPass,
                             Object salt)
                      throws org.springframework.dao.DataAccessException
Specified by:
encodePassword in interface org.springframework.security.providers.encoding.PasswordEncoder
Throws:
org.springframework.dao.DataAccessException

isPasswordValid

public boolean isPasswordValid(String encPass,
                               String rawPass,
                               Object salt)
                        throws org.springframework.dao.DataAccessException
Specified by:
isPasswordValid in interface org.springframework.security.providers.encoding.PasswordEncoder
Throws:
org.springframework.dao.DataAccessException