org.jboss.test
Class LoginModulesTestCase.TestLoginModule

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

public static class LoginModulesTestCase.TestLoginModule
extends UsernamePasswordLoginModule


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

LoginModulesTestCase.TestLoginModule

public LoginModulesTestCase.TestLoginModule()
Method Detail

getRoleSets

protected Group[] getRoleSets()
Description copied from class: AbstractServerLoginModule
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
Returns:
Group[] containing the sets of roles

getUsersPassword

protected String getUsersPassword()
This represents the 'true' password

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


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