FileDocCategorySizeDatePackage
PasswordLoginModule.javaAPI DocGlassfish v2 API3732Fri May 04 22:32:52 BST 2007com.iplanet.ias.security.auth.login

PasswordLoginModule

public abstract class PasswordLoginModule extends com.sun.appserv.security.AppservPasswordLoginModule
Provided for backward compatibility with SunOne 7.0 Newer implementations should extend com.sun.appserv.security.AbstractPasswordLogin directly

Fields Summary
Constructors Summary
Methods Summary
protected abstract com.sun.enterprise.security.auth.AuthenticationStatusauthenticate()

protected final voidauthenticateUser()
authenticateUser calls authenticate which is implemented by the implementation of this subclass

throws
LoginException

        AuthenticationStatus as = authenticate();
        if(as.getStatus() == as.AUTH_SUCCESS)
            return;
        else{
            throw new LoginException();
        }
    
public final com.sun.enterprise.security.auth.AuthenticationStatuscommitAuthentication(java.lang.String username, java.lang.String password, com.sun.enterprise.security.auth.realm.Realm theRealm, java.lang.String[] groups)
Called at the end of the authenticate method by the user

return
AuthenticationStatus indicating success/failure

        commitUserAuthentication(groups);
        int status = AuthenticationStatus.AUTH_SUCCESS;
        String realm = theRealm.getName();
        String authMethod = theRealm.getAuthType();
        AuthenticationStatus as =
            new AuthenticationStatusImpl(username, authMethod, realm, status);
        return as;