Artenus 2D Framework
Artenus Reference
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 TypeMethod and Description
public booleanisLoggedIn(int services)
Checks whether specified unified services are authenticated.
public booleanisLoginRequired(int services)
Checks whether specified unified services require user authentication.
public voidlaunchLogin(int services)
Launches the login user interface, which asks the user for credentials.
public voidlogout(int services)
Exists the currently authenticated session for specified services.
public voidsetLoginStatusListener(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:
servicesBit-masked service flags
Returns:
true if all services are authenticated, false otherwise
isLoginRequired
public boolean isLoginRequired(
    int services
)
Checks whether specified unified services require user authentication.
Parameters:
servicesBit-masked service flags
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:
servicesServices to validate by this login session (this might not be used by the specific implementation)
logout
public void logout(
    int services
)
Exists the currently authenticated session for specified services.
Parameters:
servicesServices for which to end login session (this might not be used by the specific implementation)
setLoginStatusListener
public void setLoginStatusListener(
    LoginStatusListener listener
)
Assigns a new login listener to capture login events for this LoginManager.
Parameters:
listenerLogin listener, or null to remove the login listener