SalesPoint Framework v3.1

users
Interface PassWDGarbler

All Superinterfaces:
Serializable

public interface PassWDGarbler
extends Serializable

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

Since:
v2.0
Author:
Steffen Zschaler
See Also:
User.setGlobalPassWDGarbler(users.PassWDGarbler), User.garblePassWD(char[])

Method Summary
 char[] garblePassWD(char[] sPassWD)
          Garble the given password and return the result.
 

Method Detail

garblePassWD

public char[] garblePassWD(char[] 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(char[]), User.isPassWd(char[])
Override:
Always

SalesPoint Framework v3.1