Google is committed to advancing racial equity for Black communities. See how.

ConnectionInfo

public final class ConnectionInfo extends Object

Information about a connection that is being initiated.

Public Constructor Summary

ConnectionInfo(String endpointName, String authenticationToken, boolean isIncomingConnection)

Public Method Summary

String
getAuthenticationToken()
A short human-readable authentication token that has been given to both devices.
byte[]
getEndpointInfo()
Information that represents the remote device.
String
getEndpointName()
The name of the remote device we're connecting to.
byte[]
getRawAuthenticationToken()
The raw (significantly longer) version of the authentication token from getAuthenticationToken() -- this is intended for headless authentication, typically on devices with no output capabilities, where the authentication is purely programmatic and does not have the luxury of human intervention.
boolean
isConnectionVerified()
True if the connection has been verified by internal verification mechanisms.
boolean
isIncomingConnection()
True if the connection request was initated from a remote device.

Inherited Method Summary

Public Constructors

public ConnectionInfo (String endpointName, String authenticationToken, boolean isIncomingConnection)

Public Methods

public String getAuthenticationToken ()

A short human-readable authentication token that has been given to both devices.

public byte[] getEndpointInfo ()

Information that represents the remote device.

public String getEndpointName ()

The name of the remote device we're connecting to.

public byte[] getRawAuthenticationToken ()

The raw (significantly longer) version of the authentication token from getAuthenticationToken() -- this is intended for headless authentication, typically on devices with no output capabilities, where the authentication is purely programmatic and does not have the luxury of human intervention.

public boolean isConnectionVerified ()

True if the connection has been verified by internal verification mechanisms.

public boolean isIncomingConnection ()

True if the connection request was initated from a remote device. False if this device was the one to try and initiate the connection.