Class OfflineConnectionCallback

java.lang.Object
com.blukii.sdk.config.OfflineConnectionCallback

public abstract class OfflineConnectionCallback extends Object
This abstract class provides callback methods needed during secure connection when connection is established without blukii cloud (offline).
See Also:
  • Constructor Details

    • OfflineConnectionCallback

      public OfflineConnectionCallback()
  • Method Details

    • onConnectionGetDeviceName

      public abstract String onConnectionGetDeviceName()
      Callback for request Blukii.connect(ConnectionListener, OfflineConnectionCallback).

      It is called during secure connection to define the blukii's device name.

      Note: This is only necessary if device has Secure Beacon turned on.

      Note: This is only needed for secure connection without blukii cloud. If a user is authenticated before connecting and the user is the owner of the blukii, the device name is retrieved from blukii cloud.

      Returns:
      the blukii's device name
    • onConnectionGetSecureKey

      public abstract String onConnectionGetSecureKey()
      Callback for request Blukii.connect(ConnectionListener, OfflineConnectionCallback).

      It is called during secure connection to define the blukii's secure key.

      Note: This is only needed for secure connection without blukii cloud. If a user is authenticated before connecting and the user is the owner of the blukii, the secure key is retrieved from blukii cloud.

      Returns:
      the blukii's secure key