org.jasig.cas.authentication.handler
Class DefaultPasswordEncoder
java.lang.Object
org.jasig.cas.authentication.handler.DefaultPasswordEncoder
- All Implemented Interfaces:
- PasswordEncoder
public final class DefaultPasswordEncoder
- extends Object
- implements PasswordEncoder
Implementation of PasswordEncoder using message digest. Can accept any
message digest that the JDK can accept, including MD5 and SHA1. Returns the
equivalent Hash you would get from a Perl digest.
- Since:
- 3.1
- Version:
- $Revision$ $Date$
- Author:
- Scott Battaglia, Stephen More
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPasswordEncoder
public DefaultPasswordEncoder(String encodingAlgorithm)
encode
public String encode(String password)
- Description copied from interface:
PasswordEncoder
- Method that actually performs the transformation of the plaintext
password into the encrypted password.
- Specified by:
encode in interface PasswordEncoder
- Parameters:
password - the password to translate
- Returns:
- the transformed version of the password
setCharacterEncoding
public final void setCharacterEncoding(String characterEncoding)
Copyright © 2004-2013 Jasig. All Rights Reserved.