Home / Function/ filterCipherSuites() — netty Function Reference

filterCipherSuites() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c9efd9fa_4b9a_9141_52c4_8e8653f375e9["filterCipherSuites()"]
  2a1334b9_61d6_eccd_4ac3_0ea1c3180d5e["SupportedCipherSuiteFilter"]
  c9efd9fa_4b9a_9141_52c4_8e8653f375e9 -->|defined in| 2a1334b9_61d6_eccd_4ac3_0ea1c3180d5e
  style c9efd9fa_4b9a_9141_52c4_8e8653f375e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/SupportedCipherSuiteFilter.java lines 34–56

    @Override
    public String[] filterCipherSuites(Iterable<String> ciphers, List<String> defaultCiphers,
            Set<String> supportedCiphers) {
        ObjectUtil.checkNotNull(defaultCiphers, "defaultCiphers");
        ObjectUtil.checkNotNull(supportedCiphers, "supportedCiphers");

        final List<String> newCiphers;
        if (ciphers == null) {
            newCiphers = new ArrayList<String>(defaultCiphers.size());
            ciphers = defaultCiphers;
        } else {
            newCiphers = new ArrayList<String>(supportedCiphers.size());
        }
        for (String c : ciphers) {
            if (c == null) {
                break;
            }
            if (supportedCiphers.contains(c)) {
                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/SupportedCipherSuiteFilter.java.
Where is filterCipherSuites() defined?
filterCipherSuites() is defined in handler/src/main/java/io/netty/handler/ssl/SupportedCipherSuiteFilter.java at line 34.

Analyze Your Own Codebase

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

Try Supermodel Free