Top Description Fields Constructors Methods
org.conscrypt

pack-priv abstract Class PeerInfoProvider

extends Object
Class Inheritance

A provider for the peer host and port information.

Field Summary

Modifier and TypeField and Description
private static final PeerInfoProvider

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static PeerInfoProvider
forHostAndPort(final String host, final int port)

pack-priv abstract String
getHostname()

Returns the hostname supplied during engine/socket creation.

pack-priv abstract String
getHostnameOrIP()

This method attempts to create a textual representation of the peer host or IP.

pack-priv abstract int
getPort()

Gets the port of the peer.

pack-priv static PeerInfoProvider
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

NULL_PEER_INFO_PROVIDERback to summary
private static final PeerInfoProvider NULL_PEER_INFO_PROVIDER

Constructor Detail

PeerInfoProviderback to summary
pack-priv PeerInfoProvider()

Method Detail

forHostAndPortback to summary
pack-priv static PeerInfoProvider forHostAndPort(final String host, final int port)
getHostnameback to summary
pack-priv abstract String getHostname()

Returns the hostname supplied during engine/socket creation. No DNS resolution is attempted before returning the hostname.

getHostnameOrIPback to summary
pack-priv abstract String 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.

getPortback to summary
pack-priv abstract int getPort()

Gets the port of the peer.

nullProviderback to summary
pack-priv static PeerInfoProvider nullProvider()