|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.farrago.test.FarragoMockLoginModule
public class FarragoMockLoginModule
Mock login module for testing farrago authentication.
| Field Summary | |
|---|---|
(package private) CallbackHandler |
callbackHandler
|
(package private) boolean |
debug
|
(package private) Map<String,?> |
options
|
(package private) Map<String,?> |
sharedState
|
(package private) Subject |
subject
|
(package private) boolean |
success
|
(package private) List<FarragoMockCredential> |
tempCredentials
|
(package private) List<FarragoMockPrincipal> |
tempPrincipals
|
| Constructor Summary | |
|---|---|
FarragoMockLoginModule()
|
|
| Method Summary | |
|---|---|
boolean |
abort()
Called if LoginContext's required authentications failed. |
boolean |
commit()
Called if the LoginContext's required authentications succeeded. |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
Initialize this LoginModule |
boolean |
login()
Try to log in a user. |
boolean |
logout()
Log out currently logged in subject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
CallbackHandler callbackHandler
Subject subject
Map<String,?> sharedState
Map<String,?> options
List<FarragoMockCredential> tempCredentials
List<FarragoMockPrincipal> tempPrincipals
boolean success
boolean debug
| Constructor Detail |
|---|
public FarragoMockLoginModule()
| Method Detail |
|---|
public boolean abort()
throws LoginException
abort in interface LoginModuleLoginException
public boolean commit()
throws LoginException
commit in interface LoginModuleLoginException
public void initialize(Subject subject,
CallbackHandler callbackHandler,
Map<String,?> sharedState,
Map<String,?> options)
initialize in interface LoginModule
public boolean login()
throws LoginException
login in interface LoginModuleLoginException
public boolean logout()
throws LoginException
logout in interface LoginModuleLoginException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||