-
- All Known Subinterfaces:
HttpClientContext
,HttpRequesterContext
,HttpResponderContext
,HttpServerContext
,IpModemContext<I,O>
,IpSocketContext
,IpSocketRef
,MqttSocketContext<I,O>
,WarpSocketContext
,WebSocketContext<I,O>
- All Known Implementing Classes:
AbstractHttpClient
,AbstractHttpRequester
,AbstractHttpResponder
,AbstractHttpServer
,AbstractIpModem
,AbstractIpSocket
,AbstractMqttSocket
,AbstractWarpClient
,AbstractWarpServer
,AbstractWarpSocket
,AbstractWebSocket
,AbstractWsClient
,AbstractWsServer
,HttpClientModem
,HttpClientRequester
,HttpServerModem
,HttpServerResponder
,IpSocketModem
,MqttSocketModem
,StaticHttpResponder
,WarpWebSocket
,WebServer
,WebSocketModem
,WsUpgradeRequester
,WsUpgradeResponder
public interface IpContext
IP network connection context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
cipherSuite()
Returns the cryptographic cipher suite used by the underlying network connection.boolean
isClient()
Returnstrue
if the underlying network channel initiated an outgoing connection.boolean
isConnected()
Returnstrue
if the underlying network channel is currently connected.boolean
isSecure()
Returnstrue
if the underlying network transport is encrypted.boolean
isServer()
Returnstrue
if the underlying network channel accepted an incoming connection.InetSocketAddress
localAddress()
Returns the IP address and port of the local endpoint of the underlying network connection.Collection<Certificate>
localCertificates()
Returns the certificate chain used to authenticate the local endpoint of the underlying network connection.Principal
localPrincipal()
Returns the authenticated identity of the local endpoint of the underlying network connection.InetSocketAddress
remoteAddress()
Returns the IP address and port of the remote endpoint of the underlying network connection.Collection<Certificate>
remoteCertificates()
Returns the certificate chain used to authenticate the remote endpoint of the underlying network connection.Principal
remotePrincipal()
Returns the authenticated identity of the remote endpoint of the underlying network connection.String
securityProtocol()
Returns the name of the transport-layer security protocol used by the underlying network connection.
-
-
-
Method Detail
-
isConnected
boolean isConnected()
Returnstrue
if the underlying network channel is currently connected.
-
isClient
boolean isClient()
Returnstrue
if the underlying network channel initiated an outgoing connection.
-
isServer
boolean isServer()
Returnstrue
if the underlying network channel accepted an incoming connection.
-
isSecure
boolean isSecure()
Returnstrue
if the underlying network transport is encrypted.
-
securityProtocol
String securityProtocol()
Returns the name of the transport-layer security protocol used by the underlying network connection. Returnsnull
if the underlying network channel is not currently connected, or if the underlying network connection is not secure.
-
cipherSuite
String cipherSuite()
Returns the cryptographic cipher suite used by the underlying network connection. Returnsnull
if the underlying network channel is not currently connected, or if the underlying network connection is not secure.
-
localAddress
InetSocketAddress localAddress()
Returns the IP address and port of the local endpoint of the underlying network connection. Returnsnull
if the underlying network channel is not currently connected.
-
localPrincipal
Principal localPrincipal()
Returns the authenticated identity of the local endpoint of the underlying network connection. Returnsnull
if the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.
-
localCertificates
Collection<Certificate> localCertificates()
Returns the certificate chain used to authenticate the local endpoint of the underlying network connection. Returnsnull
if the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.
-
remoteAddress
InetSocketAddress remoteAddress()
Returns the IP address and port of the remote endpoint of the underlying network connection. Returnsnull
if the underlying network channel is not currently connected.
-
remotePrincipal
Principal remotePrincipal()
Returns the authenticated identity of the remote endpoint of the underlying network connection. Returnsnull
if the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.
-
remoteCertificates
Collection<Certificate> remoteCertificates()
Returns the certificate chain used to authenticate the remote endpoint of the underlying network connection. Returnsnull
if the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.
-
-