SSLSession.getPeerHost

Returns the host name of the peer in this session. <P> For the server, this is the client's host; and for the client, it is the server's host. The name may not be a fully qualified host name or even a host name at all as it may represent a string encoding of the peer's network address. If such a name is desired, it might be resolved through a name service based on the value returned by this method. <P> This value is not authenticated and should not be relied upon. It is mainly used as a hint for <code>SSLSession</code> caching strategies.

@return the host name of the peer host, or null if no information is available.

interface SSLSession
string
getPeerHost
()

Meta