Home / Function/ toFingerprintArray() — netty Function Reference

toFingerprintArray() — netty Function Reference

Architecture documentation for the toFingerprintArray() function in FingerprintTrustManagerFactory.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  2de20ffa_d347_1600_70a4_7fb4378c0511["toFingerprintArray()"]
  397663e1_6b93_6b62_329a_d98a94a19073["FingerprintTrustManagerFactory"]
  2de20ffa_d347_1600_70a4_7fb4378c0511 -->|defined in| 397663e1_6b93_6b62_329a_d98a94a19073
  034397c5_b1e9_b7b7_ff3e_7e7fb356437b["FingerprintTrustManagerFactory()"]
  034397c5_b1e9_b7b7_ff3e_7e7fb356437b -->|calls| 2de20ffa_d347_1600_70a4_7fb4378c0511
  style 2de20ffa_d347_1600_70a4_7fb4378c0511 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactory.java lines 237–255

    static byte[][] toFingerprintArray(Iterable<String> fingerprints) {
        ObjectUtil.checkNotNull(fingerprints, "fingerprints");

        List<byte[]> list = new ArrayList<byte[]>();
        for (String f: fingerprints) {
            if (f == null) {
                break;
            }

            if (!FINGERPRINT_PATTERN.matcher(f).matches()) {
                throw new IllegalArgumentException("malformed fingerprint: " + f);
            }
            f = FINGERPRINT_STRIP_PATTERN.matcher(f).replaceAll("");

            list.add(StringUtil.decodeHexDump(f));
        }

        return list.toArray(new byte[0][]);
    }

Domain

Subdomains

Frequently Asked Questions

What does toFingerprintArray() do?
toFingerprintArray() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactory.java.
Where is toFingerprintArray() defined?
toFingerprintArray() is defined in handler/src/main/java/io/netty/handler/ssl/util/FingerprintTrustManagerFactory.java at line 237.
What calls toFingerprintArray()?
toFingerprintArray() is called by 1 function(s): FingerprintTrustManagerFactory.

Analyze Your Own Codebase

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

Try Supermodel Free