org.jboss.security.auth.spi
Class AnonLoginModule

java.lang.Object
  extended by org.jboss.security.auth.spi.AbstractServerLoginModule
      extended by org.jboss.security.auth.spi.UsernamePasswordLoginModule
          extended by org.jboss.security.auth.spi.AnonLoginModule
All Implemented Interfaces:
LoginModule

public class AnonLoginModule
extends UsernamePasswordLoginModule

A simple login module that simply allows for the specification of the identity of unauthenticated users via the unauthenticatedIdentity property.

Version:
$Revision: 57203 $
Author:
Scott.Stark@jboss.org

Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
AnonLoginModule()
           
 
Method Summary
protected  Group[] getRoleSets()
          Override to return an empty Roles set.
protected  String getUsersPassword()
          Overriden to return null.
 
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, getValidateError, initialize, login, setValidateError, validatePassword
 
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, commit, createGroup, createIdentity, getUseFirstPass, logout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnonLoginModule

public AnonLoginModule()
Method Detail

getRoleSets

protected Group[] getRoleSets()
                       throws LoginException
Override to return an empty Roles set.

Specified by:
getRoleSets in class AbstractServerLoginModule
Returns:
an array comtaning an empty 'Roles' Group.
Throws:
LoginException

getUsersPassword

protected String getUsersPassword()
                           throws LoginException
Overriden to return null.

Specified by:
getUsersPassword in class UsernamePasswordLoginModule
Returns:
null always
Throws:
LoginException


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.