Home / Function/ filterCipherSuites() — netty Function Reference

filterCipherSuites() — netty Function Reference

Architecture documentation for the filterCipherSuites() function in IdentityCipherSuiteFilter.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  655cb425_1d55_4272_2734_b6f2a67a6997["filterCipherSuites()"]
  a8f72d3a_4eb8_436a_cddc_5623548bd1ea["IdentityCipherSuiteFilter"]
  655cb425_1d55_4272_2734_b6f2a67a6997 -->|defined in| a8f72d3a_4eb8_436a_cddc_5623548bd1ea
  style 655cb425_1d55_4272_2734_b6f2a67a6997 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/IdentityCipherSuiteFilter.java lines 46–63

    @Override
    public String[] filterCipherSuites(Iterable<String> ciphers, List<String> defaultCiphers,
            Set<String> supportedCiphers) {
        if (ciphers == null) {
            return defaultToDefaultCiphers ?
                    defaultCiphers.toArray(EmptyArrays.EMPTY_STRINGS) :
                    supportedCiphers.toArray(EmptyArrays.EMPTY_STRINGS);
        } else {
            List<String> newCiphers = new ArrayList<String>(supportedCiphers.size());
            for (String c : ciphers) {
                if (c == null) {
                    break;
                }
                newCiphers.add(c);
            }
            return newCiphers.toArray(EmptyArrays.EMPTY_STRINGS);
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does filterCipherSuites() do?
filterCipherSuites() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/IdentityCipherSuiteFilter.java.
Where is filterCipherSuites() defined?
filterCipherSuites() is defined in handler/src/main/java/io/netty/handler/ssl/IdentityCipherSuiteFilter.java at line 46.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free