-
public interface AuthenticationManager
Interface for setting token and configurations
-
-
Method Summary
Modifier and Type Method Description abstract Boolean
setToken(String token)
Sets token. abstract Boolean
setConfiguration(Configuration configuration)
Sets configuration abstract Unit
addAuthenticationStatusListener(AuthenticationStatusListener authenticationStatusListener)
Register a AuthenticationStatusChangedListener to receive information when authentication status changes abstract Unit
removeAuthenticationStatusListener(AuthenticationStatusListener authenticationStatusListener)
Unregister a AuthenticationStatusChangedListenerIf authenticationStatusListener is null or not registered before, the call will be dropped abstract Boolean
requestUserLogin()
Request user login when business partner app requires the end-user to login. -
-
Method Detail
-
setToken
abstract Boolean setToken(String token)
Sets token.
If addAuthenticationStatusListener was called, a callback to authenticationStatusListener will be triggered
- Parameters:
token
- Token for authentication
-
setConfiguration
abstract Boolean setConfiguration(Configuration configuration)
Sets configuration
- Parameters:
configuration
- Configuration
-
addAuthenticationStatusListener
abstract Unit addAuthenticationStatusListener(AuthenticationStatusListener authenticationStatusListener)
Register a AuthenticationStatusChangedListener to receive information when authentication status changes
- Parameters:
authenticationStatusListener
- listener to receive status change events
-
removeAuthenticationStatusListener
abstract Unit removeAuthenticationStatusListener(AuthenticationStatusListener authenticationStatusListener)
Unregister a AuthenticationStatusChangedListener
If authenticationStatusListener is null or not registered before, the call will be dropped
-
requestUserLogin
abstract Boolean requestUserLogin()
Request user login when business partner app requires the end-user to login.
-
-
-
-