Home / Function/ revoke() — netty Function Reference

revoke() — netty Function Reference

Architecture documentation for the revoke() function in RevocationServer.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f8343225_c714_8894_957d_69650478adc0["revoke()"]
  7182e924_897c_1916_3c7b_3c294ba4f4a0["RevocationServer"]
  f8343225_c714_8894_957d_69650478adc0 -->|defined in| 7182e924_897c_1916_3c7b_3c294ba4f4a0
  style f8343225_c714_8894_957d_69650478adc0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

pkitesting/src/main/java/io/netty/pkitesting/RevocationServer.java lines 151–160

    public void revoke(X509Bundle cert, Instant time) {
        X509Certificate[] certPath = cert.getCertificatePathWithRoot();
        X509Certificate issuer = certPath.length == 1 ? certPath[0] : certPath[1];
        CrlInfo info = issuers.get(issuer);
        if (info != null) {
            info.revokedCerts.put(cert.getCertificate().getSerialNumber(), time);
        } else {
            throw new IllegalArgumentException("Not a registered issuer: " + issuer.getSubjectX500Principal());
        }
    }

Domain

Subdomains

Frequently Asked Questions

What does revoke() do?
revoke() is a function in the netty codebase, defined in pkitesting/src/main/java/io/netty/pkitesting/RevocationServer.java.
Where is revoke() defined?
revoke() is defined in pkitesting/src/main/java/io/netty/pkitesting/RevocationServer.java at line 151.

Analyze Your Own Codebase

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

Try Supermodel Free