org.salespointframework.core.users
Interface PassWDGarbler


public interface PassWDGarbler

Strategy to be used when garbling passwords. A concrete implementation of this interface can be found in User.DEFAULT_PASSWORD_GARBLER.

Since:
v2.0
Version:
2.0 05/05/1999
Author:
Steffen Zschaler
See Also:
User.setGlobalPassWDGarbler(org.salespointframework.core.users.PassWDGarbler), User.garblePassWD(java.lang.String)

Method Summary
 java.lang.String garblePassWD(java.lang.String sPassWD)
          Garble the given password and return the result.
 

Method Detail

garblePassWD

java.lang.String garblePassWD(java.lang.String sPassWD)
Garble the given password and return the result.

You can implement any garbling algorithm as long as the follwoing conditions hold:

  1. It takes a char[] and returns a char[].
  2. Different passwords give different results.
  3. The same password gives the same result in subsequent calls.

Parameters:
sPassWD - the password to be garbled.
Returns:
the garbled password.
See Also:
User.garblePassWD(java.lang.String), User.isPassWd(java.lang.String)