public class ClientRegistrationManager
extends java.lang.Object
| Constructor and Description |
|---|
ClientRegistrationManager(ServiceConfiguration configurations)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRegistered()
Check whether the client configuration is available
|
void |
register(java.lang.String registrationToken)
Register a client with the given token.
|
void |
register(java.lang.String registrationToken,
java.lang.String clientName)
Register a client with the given token and the client name.
|
void |
removeConfiguration()
Remove the locally stored client configurations.
|
void |
update(java.lang.String registrationToken)
Update the client with the given configuration, if the updating existing client fails, PAM360 server will try to register a new client.
|
void |
update(java.lang.String registrationToken,
java.lang.String clientName)
Update the client with the given configuration, if the updating existing client fails, PAM360 server will try to register a new client.
|
public ClientRegistrationManager(ServiceConfiguration configurations) throws SDKOperationFailedException, SDKInvalidArgumentException
configurations - instance of ServiceConfigurationSDKOperationFailedException - This exception along with the reason is thrown if PAMService instantiation failsSDKInvalidArgumentException - This exception is thrown if configurations have invalid or null datapublic boolean isRegistered()
public void register(java.lang.String registrationToken)
throws SDKConnectionException,
SDKRegistrationException,
SDKInvalidArgumentException
registrationToken, - The appropriate registration tokenSDKConnectionException - This exception is thrown if the SDK is unable to contact PAM360 server for registrationSDKInvalidArgumentException - This exception is thrown if registrationToken argument is nullSDKRegistrationException - This exception along with the reason is thrown if the registration failspublic void register(java.lang.String registrationToken,
java.lang.String clientName)
throws SDKConnectionException,
SDKRegistrationException,
SDKInvalidArgumentException
registrationToken, - The appropriate registration tokenclientName - mandatory not null,name of the client registeringSDKConnectionException - This exception is thrown if the SDK is unable to contact PAM360 server for registrationSDKInvalidArgumentException - This exception is thrown if registrationToken, clientName arguments are null or emptySDKRegistrationException - This exception along with the reason is thrown if the registration failspublic void update(java.lang.String registrationToken)
throws SDKInvalidArgumentException,
SDKConnectionException,
SDKRegistrationException
registrationToken, - The appropriate registration tokenSDKConnectionException - This exception is thrown if the SDK is unable to contact PAM360 server for registrationSDKInvalidArgumentException - This exception is thrown if configuration argument is nullSDKRegistrationException - This exception along with the reason is thrown if the registration failspublic void update(java.lang.String registrationToken,
java.lang.String clientName)
throws SDKInvalidArgumentException,
SDKConnectionException,
SDKRegistrationException
registrationToken, - The appropriate registration tokenSDKConnectionException - This exception is thrown if the SDK is unable to contact PAM360 server for registrationSDKInvalidArgumentException - This exception is thrown if configuration argument is nullSDKRegistrationException - This exception along with the reason is thrown if the registration failspublic void removeConfiguration()
throws SDKRegistrationException
SDKRegistrationException - This exception is thrown if the client is not registered