public class SAAuthenticationToken extends Object
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.
For more information about using Accessory, please refer to the Accessory Programming Guide.
Modifier and Type | Field and Description |
---|---|
static int |
AUTHENTICATION_TYPE_CERTIFICATE_X509
X.509 Certificate authentication type.
|
static int |
AUTHENTICATION_TYPE_NONE
None or invalid authentication type
Constant Value: 1547 (0x0000060B)
|
Modifier and Type | Method and Description |
---|---|
int |
getAuthenticationType()
Returns the authentication type.
|
byte[] |
getKey()
Returns the key corresponding to this authentication token.
|
public static final int AUTHENTICATION_TYPE_NONE
Constant Value: 1547 (0x0000060B)
public static final int AUTHENTICATION_TYPE_CERTIFICATE_X509
Constant Value: 1548 (0x0000060C)
public byte[] getKey()
public int getAuthenticationType()
AUTHENTICATION_TYPE_CERTIFICATE_X509
,
AUTHENTICATION_TYPE_NONE
Copyright © Samsung Electronics, Co., Ltd. All rights reserved.