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, setRes
public String getCurrentUsername()
SingleSignOn
public boolean getLastConnectionStatus()
SingleSignOn
public boolean isLoggedIn()
SingleSignOn
true
when the user is logged in, or false otherwise.public boolean login(String username, String password)
SingleSignOn
username
and
password
in to the SSO authentication mechanism.username
- The username credentials.password
- The password credentials.public void logout()
SingleSignOn
public List<String> retrieveGroupsForUser(String username)
SingleSignOn
username
- 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.