- All Known Implementing Classes:
DirectPeerInfo
public interface PeerInfo
Information about one side of this communication (either local or remote).
-
Method Details
-
address
SocketAddress address()Socket address of the peer.- Returns:
- address
-
host
String host()Host of the peer.- Returns:
- host
-
port
int port()Port of the peer.- Returns:
- port
-
tlsPrincipal
TLS principal (from certificate) of the peer.- Returns:
- principal of the peer, or empty if not a TLS connection, or this peer does not provide principal
-
tlsCertificates
Optional<Certificate[]> tlsCertificates()TLS certificate chain of the peer.- Returns:
- certificate chain of the peer, or empty if not a TLS connection, or this peer does not provide certificates
-