Security Enabled - Web

Nov 24, 2016

Security_Web.zip4.12MB

Security Enabled sample application displays simple text interactions between the host device and the Galaxy Watch device using secured APIs of Accessory SDK. This sample application is a companion type and is provided in two types.

Provider (Android) and Consumer (Galaxy Watch)

Figure 1 Security Enabled - Provider (Android) and Consumer (Galaxy Watch)

This sample application has two parts:

  • SecuredProvider

    • Works in host device and has no UI.

    • Authenticates a remote Accessory Peer Agent in Galaxy Watch device

    • Accepts a receiving service connection request from Galaxy Watch device.

    • Replies to a receiving command from Galaxy Watch device with encrypted current time stamp.

  • SecuredConsumer

    • Works in Galaxy Watch device and has UI.

    • Initiates service connection request and send command to the host device.

    • Shows a received response to user.

Sender (Galaxy Watch) and Receiver (Android)

Figure 2 Security Enabled - Provider (Galaxy Watch) and Consumer (Android)

This sample application has two parts:

  • SecuredProvider

    • Works in Galaxy Watch device.

    • Authenticates a remote Accessory Peer Agent in host device.

    • Accepts a receiving service connection request from host device.

    • Replies to a receiving command from host device with encrypted current time stamp.

  • SecuredConsumer

    • Works in host device and has UI.

    • Initiates service connection request and sends command to Galaxy Watch device.

    • Shows a received response to user.