目录

CLASS info
public class ConnectInfo implements Parcelable
Represents the information about a connection.

Public Constructor Summary

Constructor
public ConnectInfo(String endpointName, String authCode, boolean isRemoteConnect)
Creates a ConnectInfo object.

Public Method Summary

Return typeMethod name
StringgetAuthCode()
Obtains the symmetric authentication codes from both ends.
StringgetEndpointName()
Obtains the name of the remote endpoint.
booleanisRemoteConnect()
Checks whether the connection request is initiated by the remote endpoint.

Public Constructors

Constructor
public ConnectInfo(String endpointName, String authCode, boolean isRemoteConnect)
Creates a ConnectInfo object.

Parameters

Parameter nameParameter desc
endpointNameName of the remote endpoint.
authCodeAuthentication code.
isRemoteConnectIndicates whether the connection is initiated by the remote endpoint. If so, the value true is returned; otherwise, the value false is returned.

Public Methods

Method
public String getAuthCode()
Obtains the symmetric authentication codes from both ends.
Method
public String getEndpointName()
Obtains the name of the remote endpoint.
Method
public boolean isRemoteConnect()
Checks whether the connection request is initiated by the remote endpoint. If the connection request is initiated by the remote endpoint, true is returned. Otherwise, false is returned.