org.jboss.test
Class LoginModulesTestCase.TestLoginModule

java.lang.Object
  extended byorg.jboss.security.auth.spi.AbstractServerLoginModule (src) 
      extended byorg.jboss.security.auth.spi.UsernamePasswordLoginModule (src) 
          extended byorg.jboss.test.LoginModulesTestCase.TestLoginModule
All Implemented Interfaces:
javax.security.auth.spi.LoginModule
Direct Known Subclasses:
LoginModulesTestCase.HashTestLoginModule (src)
Enclosing class:
LoginModulesTestCase (src)

public static class LoginModulesTestCase.TestLoginModule
extends UsernamePasswordLoginModule (src)


Field Summary
 
Fields inherited from class org.jboss.security.auth.spi.AbstractServerLoginModule (src)
callbackHandler, log, loginOk, options, principalClassName, sharedState, subject, unauthenticatedIdentity, useFirstPass
 
Constructor Summary
LoginModulesTestCase.TestLoginModule()
           
 
Method Summary
protected  java.security.acl.Group[] getRoleSets()
          Overriden by subclasses to return the Groups that correspond to the to the role sets assigned to the user.
protected  java.lang.String getUsersPassword()
          This represents the 'true' password
 
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

LoginModulesTestCase.TestLoginModule

public LoginModulesTestCase.TestLoginModule()
Method Detail

getRoleSets

protected java.security.acl.Group[] getRoleSets()
Description copied from class: AbstractServerLoginModule (src)
Overriden by subclasses to return the Groups that correspond to the to the role sets assigned to the user. Subclasses should create at least a Group named "Roles" that contains the roles assigned to the user. A second common group is "CallerPrincipal" that provides the application identity of the user rather than the security domain identity.

Specified by:
getRoleSets in class AbstractServerLoginModule (src)
Returns:
Group[] containing the sets of roles

getUsersPassword

protected java.lang.String getUsersPassword()
This represents the 'true' password

Specified by:
getUsersPassword in class UsernamePasswordLoginModule (src)
Returns:
the valid password String