Example usage for io.netty.handler.ssl SslHandler isEncrypted

List of usage examples for io.netty.handler.ssl SslHandler isEncrypted

Introduction

In this page you can find the example usage for io.netty.handler.ssl SslHandler isEncrypted.

Prototype

public static boolean isEncrypted(ByteBuf buffer) 

Source Link

Document

Returns true if the given ByteBuf is encrypted.

Usage

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;
}