com.annahid.libs.artenus.security
NullLoginManager
Provides an implementation of
LoginManager
provided by
unified services providers that do not have a user authentication component. public class NullLoginManager implements LoginManager
Constructor Summary
Modifier and Type | Constructor and Description |
---|---|
public | NullLoginManager() |
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. |
Methods inherited from java.lang.Object
clone
, equals
, finalize
, getClass
, hashCode
, notify
, notifyAll
, toString
, wait
, wait
, wait
Method Detail
isLoggedIn |
---|
public boolean isLoggedIn( int services ) Checks whether specified unified services are authenticated. Specified By:
Returns:
true if all services are authenticated, false otherwise |
isLoginRequired |
---|
public boolean isLoginRequired( int services ) Checks whether specified unified services require user authentication. Specified By:
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. Specified By:
|
logout |
---|
public void logout( int services ) Exists the currently authenticated session for specified services. Specified By:
|
setLoginStatusListener |
---|
public void setLoginStatusListener( LoginStatusListener listener ) Assigns a new login listener to capture login events for this LoginManager. Specified By:
|