com.annahid.libs.artenus.security
LoginManager
Interface for unified services that support or require user login. Most of the methods in this
interface work on a group of services. However, this is rarely used.
UnifiedServices
implementations often require a single login for all their services. As a result, login status
changes for all services together.See Also:
public interface LoginManager
Method Summary
| Modifier and Type | Method and Description |
|---|---|
public boolean | isLoggedIn(int services) Checks whether specified unified services are authenticated. |
public boolean | isLoginRequired(int services) Checks whether specified unified services require user authentication. |
public void | launchLogin(int services) Launches the login user interface, which asks the user for credentials. |
public void | logout(int services) Exists the currently authenticated session for specified services. |
public void | setLoginStatusListener(LoginStatusListener listener) Assigns a new login listener to capture login events for this LoginManager. |
Method Detail
| isLoggedIn | ||
|---|---|---|
public boolean isLoggedIn(
int services
)Checks whether specified unified services are authenticated. Parameters:
Returns:
true if all services are authenticated, false otherwise |
| isLoginRequired | ||
|---|---|---|
public boolean isLoginRequired(
int services
)Checks whether specified unified services require user authentication. Parameters:
Returns:
true if all services require user authentication, false otherwise |
| launchLogin | ||
|---|---|---|
public void launchLogin(
int services
)Launches the login user interface, which asks the user for credentials. Parameters:
|
| logout | ||
|---|---|---|
public void logout(
int services
)Exists the currently authenticated session for specified services. Parameters:
|
| setLoginStatusListener | ||
|---|---|---|
public void setLoginStatusListener(
LoginStatusListener listener
)Assigns a new login listener to capture login events for this LoginManager. Parameters:
|