org.pentaho.platform.engine.security
Class DefaultPentahoPasswordEncoder

java.lang.Object
  extended by org.pentaho.platform.engine.security.DefaultPentahoPasswordEncoder

public class DefaultPentahoPasswordEncoder
extends Object

Default password encoder for the BI Server.

TODO Stop using IPasswordService since it is inherently reversible which is not a best practice.

Delegates to IPasswordService. Note that IPasswordService and PasswordEncoder are fundamentally different.

IPasswordService implements reversible encoding; PasswordEncoder is not reversible.

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 DataAccessException
Throws:
DataAccessException

isPasswordValid

public boolean isPasswordValid(String encPass,
                               String rawPass,
                               Object salt)
                        throws DataAccessException
Throws:
DataAccessException