public class DummyImpl extends AbstractWebBasedSingleSignOn
guest.req, res| Constructor and Description |
|---|
DummyImpl() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCurrentUsername()
Should return the current logged in Single Sign On username returned from
the implementation-specific authentication API.
|
boolean |
getLastConnectionStatus()
Should provide information (true or false) as to whether the last
connection to the SSO authentication service was successful.
|
boolean |
isLoggedIn()
Returns
true when the user is logged in, or false otherwise. |
boolean |
login(String username,
String password)
Logs the user with the provided
username and
password in to the SSO authentication mechanism. |
void |
logout()
Logs the current SSO user out of her session.
|
List<String> |
retrieveGroupsForUser(String username)
Obtains a user's groups from the security principal that this SSO object
talks to.
|
getReq, getRes, setReq, setRespublic String getCurrentUsername()
SingleSignOnpublic boolean getLastConnectionStatus()
SingleSignOnpublic boolean isLoggedIn()
SingleSignOntrue when the user is logged in, or false otherwise.public boolean login(String username, String password)
SingleSignOnusername and
password in to the SSO authentication mechanism.username - The username credentials.password - The password credentials.public void logout()
SingleSignOnpublic List<String> retrieveGroupsForUser(String username)
SingleSignOnusername - The username to obtain the groups for.List of string group names obtained from the security
principal.Copyright © 1999–2017 Apache OODT. All rights reserved.