org.jasig.cas.authentication.handler
Class DefaultPasswordEncoder

java.lang.Object
  extended by org.jasig.cas.authentication.handler.DefaultPasswordEncoder
All Implemented Interfaces:
PasswordEncoder

public final class DefaultPasswordEncoder
extends java.lang.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: 47522 $ $Date: 2009-12-14 23:33:36 -0500 (Mon, 14 Dec 2009) $
Author:
Scott Battaglia, Stephen More

Constructor Summary
DefaultPasswordEncoder(java.lang.String encodingAlgorithm)
           
 
Method Summary
 java.lang.String encode(java.lang.String password)
          Method that actually performs the transformation of the plaintext password into the encrypted password.
 void setCharacterEncoding(java.lang.String characterEncoding)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPasswordEncoder

public DefaultPasswordEncoder(java.lang.String encodingAlgorithm)
Method Detail

encode

public java.lang.String encode(java.lang.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(java.lang.String characterEncoding)


Copyright © 2004-2010 Java Architectures Special Interest Group. All Rights Reserved.