java.lang.Object
io.helidon.common.socket.PlainSocket
io.helidon.common.socket.TlsSocket
- All Implemented Interfaces:
HelidonSocket
,SocketContext
,Supplier<byte[]>
TLS socket.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TlsSocket
Create a client TLS socket.boolean
isSecure()
Whether the request is secure.Local peer information.protocol()
Protocol that was negotiated.boolean
Whether a protocol was negotiated by the socket (such as ALPN when using TLS).Remote peer information.static TlsSocket
Create a server TLS socket.Methods inherited from class io.helidon.common.socket.PlainSocket
childSocketId, client, close, get, idle, isConnected, read, server, socketId, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.common.socket.SocketContext
log, log
-
Method Details
-
server
Create a server TLS socket.- Parameters:
delegate
- underlying socketchannelId
- listener channel idserverChannelId
- connection channel id- Returns:
- a new TLS socket
-
client
Create a client TLS socket.- Parameters:
delegate
- underlying socketchannelId
- channel id- Returns:
- a new TLS socket
-
remotePeer
Description copied from interface:SocketContext
Remote peer information.- Specified by:
remotePeer
in interfaceSocketContext
- Overrides:
remotePeer
in classPlainSocket
- Returns:
- peer info
-
localPeer
Description copied from interface:SocketContext
Local peer information.- Specified by:
localPeer
in interfaceSocketContext
- Overrides:
localPeer
in classPlainSocket
- Returns:
- peer info
-
isSecure
public boolean isSecure()Description copied from interface:SocketContext
Whether the request is secure.- Specified by:
isSecure
in interfaceSocketContext
- Overrides:
isSecure
in classPlainSocket
- Returns:
- whether secure
-
protocolNegotiated
public boolean protocolNegotiated()Description copied from interface:HelidonSocket
Whether a protocol was negotiated by the socket (such as ALPN when using TLS).- Returns:
- whether a protocol was negotiated
-
protocol
Description copied from interface:HelidonSocket
Protocol that was negotiated.- Returns:
- protocol name
-