Package org.conscrypt
Class PeerInfoProvider
java.lang.Object
org.conscrypt.PeerInfoProvider
A provider for the peer host and port information.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static PeerInfoProvider
forHostAndPort
(String host, int port) (package private) abstract String
Returns the hostname supplied during engine/socket creation.(package private) abstract String
This method attempts to create a textual representation of the peer host or IP.(package private) abstract int
getPort()
Gets the port of the peer.(package private) static PeerInfoProvider
-
Field Details
-
NULL_PEER_INFO_PROVIDER
-
-
Constructor Details
-
PeerInfoProvider
PeerInfoProvider()
-
-
Method Details
-
getHostname
Returns the hostname supplied during engine/socket creation. No DNS resolution is attempted before returning the hostname. -
getHostnameOrIP
This method attempts to create a textual representation of the peer host or IP. Does not perform a reverse DNS lookup. This is typically used during session creation. -
getPort
abstract int getPort()Gets the port of the peer. -
nullProvider
-
forHostAndPort
-