-
- 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 IpContextIP network connection context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcipherSuite()Returns the cryptographic cipher suite used by the underlying network connection.booleanisClient()Returnstrueif the underlying network channel initiated an outgoing connection.booleanisConnected()Returnstrueif the underlying network channel is currently connected.booleanisSecure()Returnstrueif the underlying network transport is encrypted.booleanisServer()Returnstrueif the underlying network channel accepted an incoming connection.InetSocketAddresslocalAddress()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.PrincipallocalPrincipal()Returns the authenticated identity of the local endpoint of the underlying network connection.InetSocketAddressremoteAddress()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.PrincipalremotePrincipal()Returns the authenticated identity of the remote endpoint of the underlying network connection.StringsecurityProtocol()Returns the name of the transport-layer security protocol used by the underlying network connection.
-
-
-
Method Detail
-
isConnected
boolean isConnected()
Returnstrueif the underlying network channel is currently connected.
-
isClient
boolean isClient()
Returnstrueif the underlying network channel initiated an outgoing connection.
-
isServer
boolean isServer()
Returnstrueif the underlying network channel accepted an incoming connection.
-
isSecure
boolean isSecure()
Returnstrueif the underlying network transport is encrypted.
-
securityProtocol
String securityProtocol()
Returns the name of the transport-layer security protocol used by the underlying network connection. Returnsnullif 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. Returnsnullif 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. Returnsnullif the underlying network channel is not currently connected.
-
localPrincipal
Principal localPrincipal()
Returns the authenticated identity of the local endpoint of the underlying network connection. Returnsnullif 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. Returnsnullif 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. Returnsnullif the underlying network channel is not currently connected.
-
remotePrincipal
Principal remotePrincipal()
Returns the authenticated identity of the remote endpoint of the underlying network connection. Returnsnullif 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. Returnsnullif the underlying network channel is not currently connected, or if the underlying network connection is not authenticated.
-
-