SalesPoint Framework v3.0

users
Interface PassWDGarbler


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.

Hooks:
Define Password Garbling Algorithm
Since:
v2.0
Version:
2.0 05/05/1999
Author:
Steffen Zschaler
See Also:
User.setGlobalPassWDGarbler(users.PassWDGarbler), User.garblePassWD(java.lang.String)

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

Method Detail

garblePassWD

public String garblePassWD(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 string and returns a string.
  2. Different passwords give different results.
  3. The same password gives the same result in subsequent calls.
Override:
Always.
Parameters:
sPassWD - the password to be garbled.
Returns:
the garbled password.
Hooks:
Define Password Garbling Algorithm
See Also:
User.garblePassWD(java.lang.String), User.isPassWd(java.lang.String)

SalesPoint Framework v3.0