Package org.jboss.security.auth.spi
Class AnonLoginModule
- java.lang.Object
-
- org.jboss.security.auth.spi.AbstractServerLoginModule
-
- org.jboss.security.auth.spi.UsernamePasswordLoginModule
-
- 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$
- Author:
- Scott.Stark@jboss.org
-
-
Field Summary
-
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
callbackHandler, jbossModuleName, log, loginOk, options, principalClassModuleName, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
-
-
Constructor Summary
Constructors Constructor Description AnonLoginModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, safeClose, setValidateError, validatePassword
-
Methods inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule
abort, addValidOptions, checkOptions, commit, createGroup, createIdentity, getCallerPrincipalGroup, getUseFirstPass, logout
-
-
-
-
Method Detail
-
getRoleSets
protected Group[] getRoleSets() throws LoginException
Override to return an empty Roles set.- Specified by:
getRoleSets
in classAbstractServerLoginModule
- Returns:
- an array comtaning an empty 'Roles' Group.
- Throws:
LoginException
-
getUsersPassword
protected String getUsersPassword() throws LoginException
Overriden to return null.- Specified by:
getUsersPassword
in classUsernamePasswordLoginModule
- Returns:
- null always
- Throws:
LoginException
-
-