org.onebusaway.users.impl.authentication
Class VersionedPasswordEncoder

java.lang.Object
  extended by org.onebusaway.users.impl.authentication.VersionedPasswordEncoder
All Implemented Interfaces:
org.springframework.security.providers.encoding.PasswordEncoder

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


Constructor Summary
VersionedPasswordEncoder()
           
 
Method Summary
 String encodePassword(String rawPass, Object salt)
           
 boolean isPasswordValid(String encPass, String rawPass, Object salt)
           
 void setPasswordEncoder(org.springframework.security.providers.encoding.PasswordEncoder passwordEncoder)
           
 void setVersionId(String versionId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionedPasswordEncoder

public VersionedPasswordEncoder()
Method Detail

setVersionId

public void setVersionId(String versionId)

setPasswordEncoder

public void setPasswordEncoder(org.springframework.security.providers.encoding.PasswordEncoder passwordEncoder)

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


Copyright © 2011 OneBusAway. All Rights Reserved.