public class TestLoginModule extends Object implements LoginModule
Context.SECURITY_PRINCIPAL InitialContext property
to the rolename it wants to "RunAs", and this login module will do the result.| Constructor and Description |
|---|
TestLoginModule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
abort() |
boolean |
commit() |
void |
initialize(Subject subject,
CallbackHandler callbackHandler,
Map sharedState,
Map options) |
boolean |
login() |
boolean |
logout() |
public void initialize(Subject subject, CallbackHandler callbackHandler, Map sharedState, Map options)
initialize in interface LoginModulepublic boolean login()
throws LoginException
login in interface LoginModuleLoginExceptionpublic boolean commit()
throws LoginException
commit in interface LoginModuleLoginExceptionpublic boolean abort()
throws LoginException
abort in interface LoginModuleLoginExceptionpublic boolean logout()
throws LoginException
logout in interface LoginModuleLoginExceptionCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.