com.samsung.android.sdk.accessory

Class SAAuthenticationToken

  • java.lang.Object
    • com.samsung.android.sdk.accessory.SAAuthenticationToken


  • public class SAAuthenticationToken
    extends java.lang.Object
    SAAuthenticationToken stores the type of authentication (currently, only support X.509 certificate), and the key corresponding to the authentication type.

    The application can get the instance of this class by using SAAgent.onAuthenticationResponse(SAPeerAgent, SAAuthenticationToken, int) callback. The application can verify Accessory Peer Agent's identity by checking its authentication token information, and then decide whether to request a Service Connection with the Accessory Peer Agent, or whether to accept incoming Service Connection requests from the Accessory Peer Agent.

    Developer Guides

    For more information about using Accessory, please refer to the Accessory Programming Guide.

    • Field Detail

      • AUTHENTICATION_TYPE_NONE

        public static final int AUTHENTICATION_TYPE_NONE
        None or invalid authentication type

        Constant Value: 1547 (0x0000060B)

        Since:
        2.0.19
        See Also:
        Constant Field Values
      • AUTHENTICATION_TYPE_CERTIFICATE_X509

        public static final int AUTHENTICATION_TYPE_CERTIFICATE_X509
        X.509 Certificate authentication type.

        Constant Value: 1548 (0x0000060C)

        Since:
        2.0.19
        See Also:
        Constant Field Values
    • Method Detail

      • getKey

        public byte[] getKey()
        Returns the key corresponding to this authentication token.
        Returns:
        The key corresponding to this authentication token.
        Since:
        2.0.19