org.jboss.security.auth.spi
Class AnonLoginModule

java.lang.Object
  extended byorg.jboss.security.auth.spi.AbstractServerLoginModule (src) 
      extended byorg.jboss.security.auth.spi.UsernamePasswordLoginModule (src) 
          extended byorg.jboss.security.auth.spi.AnonLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule

public class AnonLoginModule
extends UsernamePasswordLoginModule (src)

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


Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src)
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
AnonLoginModule()
           
 
Method Summary
protected  java.security.acl.Group[] getRoleSets()
          Override to return an empty Roles set.
protected  java.lang.String getUsersPassword()
          Overriden to return null.
 
Methods inherited from class org.jboss.security.auth.spi.UsernamePasswordLoginModule (src)
createPasswordHash, getCredentials, getIdentity, getUnauthenticatedIdentity, getUsername, getUsernameAndPassword, initialize, login, validatePassword
 
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src)
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 java.security.acl.Group[] getRoleSets()
                                         throws javax.security.auth.login.LoginException
Override to return an empty Roles set.

Specified by:
getRoleSets in class AbstractServerLoginModule (src)
Returns:
an array comtaning an empty 'Roles' Group.
Throws:
javax.security.auth.login.LoginException

getUsersPassword

protected java.lang.String getUsersPassword()
                                     throws javax.security.auth.login.LoginException
Overriden to return null.

Specified by:
getUsersPassword in class UsernamePasswordLoginModule (src)
Returns:
null always
Throws:
javax.security.auth.login.LoginException