Class SharedDeviceService

  • All Implemented Interfaces:

    
    public final class SharedDeviceService
    extends MobileService
                        

    Represents the service to retrieve shared device settings, encryption key for offline database initialization, etc.

    This service is for offline mobile application in multiple user mode, one device will be shared to different users.

    When initializing offline database, an encryption key can be provided to enhance the security. To maximum the security, applicationKeyParameter is strongly recommended to be provided in the client code before initializing this service with SDKInitializer. Please note that once the application is deployed, applicationKeyParameter should not be changed, otherwise, the existing user will not be able to open the offline database.

    The service has an internal algorithm to generate the encryption, to leverage this, encryptionKeyReadyListener should be also be provided, the generated encryption will be notified via this listener. Client code can also call the APIs in this service to retrieve encryption from server side, then generate key with customized algorithm.