FileDocCategorySizeDatePackage
PlainTextPasswordValidator.javaAPI DocExample3148Tue May 29 16:58:58 BST 2007xwss.s1.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()) &&
                "abcd!1234".equals(plainTextRequest.getPassword())) {
                return true;
            }
            return false;