Class TlsSocket
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 PlainSocket
childSocketId, client, close, get, idle, isConnected, server, socketId, writeModifier and TypeMethodDescriptionChild socket id.static PlainSocketCreate a new client socket.voidclose()Close the underlying socket.byte[]get()voididle()Sets the socket to idle mode.booleanCheck if socket is connected.static PlainSocketCreate a new server socket.socketId()Main socket id.voidwrite(BufferData buffer) Write teh buffer to the underlying socket.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SocketContext
log, logModifier and TypeMethodDescriptiondefault voidlog(System.Logger logger, System.Logger.Level level, String format, Object... variables) Log a message with the currentSocketContext.socketId()andSocketContext.childSocketId()to have consistent logs mappable to sockets.default voidlog(System.Logger logger, System.Logger.Level level, String format, Throwable t, Object... variables) Log a message with the currentSocketContext.socketId()andSocketContext.childSocketId()to have consistent logs mappable to sockets.
-
Method Details
-
server
-
client
-
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
-