Class SimpleServerLoginModule

  • All Implemented Interfaces:
    LoginModule

    public class SimpleServerLoginModule
    extends UsernamePasswordLoginModule
    A simple server login module useful to quick setup of security for testing purposes. It implements the following simple algorithm:
    • if password is null, authenticate the user and assign an identity of "guest" and a role of "guest".
    • else if password is equal to the user name, assign an identity equal to the username and both "user" and "guest" roles
    • else authentication fails.
    Version:
    $Revision$
    Author:
    Oleg Nitz, Scott.Stark@jboss.org
    • Constructor Detail

      • SimpleServerLoginModule

        public SimpleServerLoginModule()