FileDocCategorySizeDatePackage
PlainTextPasswordValidator.javaAPI DocExample2833Tue May 29 16:59:00 BST 2007xwss.s11.server

PlainTextPasswordValidator

public class PlainTextPasswordValidator extends Object implements PasswordValidationCallback.PasswordValidator

Fields Summary
Constructors Summary
Methods Summary
public booleanvalidate(PasswordValidationCallback.Request request)


            System.out.println("Using configured PlainTextPasswordValidator................");

            PasswordValidationCallback.PlainTextPasswordRequest plainTextRequest =

                (PasswordValidationCallback.PlainTextPasswordRequest) request;

            if ("Alice".equals(plainTextRequest.getUsername()) &&

                "ecilA".equals(plainTextRequest.getPassword())) {

                return true;

            }

            return false;