List of usage examples for io.netty.handler.ssl SslHandler isEncrypted
public static boolean isEncrypted(ByteBuf buffer)
From source file:com.flysoloing.learning.network.netty.portunification.PortUnificationServerHandler.java
License:Apache License
private boolean isSsl(ByteBuf buf) { if (detectSsl) { return SslHandler.isEncrypted(buf); } return false; }
From source file:org.neo4j.bolt.transport.TransportSelectionHandler.java
License:Open Source License
private boolean detectSsl(ByteBuf buf) { return sslCtx != null && SslHandler.isEncrypted(buf); }
From source file:org.opendaylight.openflowjava.protocol.impl.core.TlsDetector.java
License:Open Source License
private boolean isSsl(ByteBuf bb) { if (detectSsl) { LOGGER.trace("Testing connection for TLS"); return SslHandler.isEncrypted(bb); }/* w ww . j av a 2s . co m*/ return false; }