org.jasig.cas.authentication.handler
Interface PasswordEncoder

All Known Implementing Classes:
DefaultPasswordEncoder, PlainTextPasswordEncoder

public interface PasswordEncoder

Interface to provide a standard way to translate a plaintext password into a different representation of that password so that the password may be compared with the stored encrypted password without having to decode the encrypted password.

PasswordEncoders are useful because often the stored passwords are encoded with a one way hash function which makes them almost impossible to decode.

Since:
3.0

This is a published and supported CAS Server 3 API.

Version:
$Revision: 42053 $ $Date: 2007-06-10 09:17:55 -0400 (Sun, 10 Jun 2007) $
Author:
Scott Battaglia

Method Summary
 java.lang.String encode(java.lang.String password)
          Method that actually performs the transformation of the plaintext password into the encrypted password.
 

Method Detail

encode

java.lang.String encode(java.lang.String password)
Method that actually performs the transformation of the plaintext password into the encrypted password.

Parameters:
password - the password to translate
Returns:
the transformed version of the password


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