Example usage for io.netty.handler.ssl CipherSuiteConverter toJava

List of usage examples for io.netty.handler.ssl CipherSuiteConverter toJava

Introduction

In this page you can find the example usage for io.netty.handler.ssl CipherSuiteConverter toJava.

Prototype

static String toJava(String openSslCipherSuite, String protocol) 

Source Link

Document

Convert from OpenSSL cipher suite name convention to java cipher suite name convention.

Usage

From source file:ch.uninbf.mcs.tomcatopenssl.net.ssl.open.OpenSslEngine.java

License:Apache License

/**
 * Converts the specified OpenSSL cipher suite to the Java cipher suite.
 *///from   w w  w  .ja  va  2s. com
private String toJavaCipherSuite(String openSslCipherSuite) {
    if (openSslCipherSuite == null) {
        return null;
    }

    String prefix = toJavaCipherSuitePrefix(SSL.getVersion(ssl));
    return CipherSuiteConverter.toJava(openSslCipherSuite, prefix);
}