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 TlsSocketCreate a client TLS socket.booleanisSecure()Whether the request is secure.Local peer information.protocol()Protocol that was negotiated.booleanWhether a protocol was negotiated by the socket (such as ALPN when using TLS).Remote peer information.static TlsSocketCreate a server TLS socket.Methods inherited from class io.helidon.common.socket.PlainSocket
childSocketId, client, close, get, idle, isConnected, read, server, socketId, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:SocketContextRemote peer information.- Specified by:
remotePeerin interfaceSocketContext- Overrides:
remotePeerin classPlainSocket- Returns:
- peer info
-
localPeer
Description copied from interface:SocketContextLocal peer information.- Specified by:
localPeerin interfaceSocketContext- Overrides:
localPeerin classPlainSocket- Returns:
- peer info
-
isSecure
public boolean isSecure()Description copied from interface:SocketContextWhether the request is secure.- Specified by:
isSecurein interfaceSocketContext- Overrides:
isSecurein classPlainSocket- Returns:
- whether secure
-
protocolNegotiated
public boolean protocolNegotiated()Description copied from interface:HelidonSocketWhether a protocol was negotiated by the socket (such as ALPN when using TLS).- Returns:
- whether a protocol was negotiated
-
protocol
Description copied from interface:HelidonSocketProtocol that was negotiated.- Returns:
- protocol name
-