java.lang.Object
org.miaixz.bus.socket.plugin.AbstractPlugin<T>
org.miaixz.bus.socket.plugin.SslPlugin<T>
SSL/TLS通信插件
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
ConstructorsConstructorDescriptionSslPlugin(ClientSSLContextFactory factory) SslPlugin(ClientSSLContextFactory factory, BufferPagePool bufferPagePool) SslPlugin(ServerSSLContextFactory factory, ClientAuth clientAuth) SslPlugin(ServerSSLContextFactory factory, ClientAuth clientAuth, BufferPagePool bufferPagePool) SslPlugin(SSLContextFactory factory) SslPlugin(SSLContextFactory factory, Consumer<SSLEngine> consumer) SslPlugin(SSLContextFactory factory, Consumer<SSLEngine> consumer, BufferPagePool bufferPagePool) -
Method Summary
Modifier and TypeMethodDescriptionvoiddebug(boolean debug) shouldAccept(AsynchronousSocketChannel channel) 监控已接收到的连接Methods inherited from class org.miaixz.bus.socket.plugin.AbstractPlugin
afterRead, afterWrite, beforeRead, beforeWrite, process, stateEvent, toHex, toHexString
-
Constructor Details
-
SslPlugin
- Throws:
Exception
-
SslPlugin
- Throws:
Exception
-
SslPlugin
public SslPlugin(SSLContextFactory factory, Consumer<SSLEngine> consumer, BufferPagePool bufferPagePool) throws Exception - Throws:
Exception
-
SslPlugin
- Throws:
Exception
-
SslPlugin
- Throws:
Exception
-
SslPlugin
- Throws:
Exception
-
SslPlugin
public SslPlugin(ServerSSLContextFactory factory, ClientAuth clientAuth, BufferPagePool bufferPagePool) throws Exception - Throws:
Exception
-
-
Method Details
-
shouldAccept
Description copied from interface:Monitor监控已接收到的连接- Specified by:
shouldAcceptin interfaceMonitor- Overrides:
shouldAcceptin classAbstractPlugin<T>- Parameters:
channel- 当前已经建立连接的通道对象- Returns:
- 非null:接受该连接,null:拒绝该连接
-
debug
public void debug(boolean debug)
-