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$ $Date$
Author:
Scott Battaglia

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

Method Detail

encode

String encode(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-2013 Jasig. All Rights Reserved.