Home / Function/ KeyStore() — netty Function Reference

KeyStore() — netty Function Reference

Architecture documentation for the KeyStore() function in SslContext.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  801a5699_7c4a_e1ea_35f9_13aeba14b02e["KeyStore()"]
  ec56e535_0508_8846_8172_a704185d370e["SslContext"]
  801a5699_7c4a_e1ea_35f9_13aeba14b02e -->|defined in| ec56e535_0508_8846_8172_a704185d370e
  style 801a5699_7c4a_e1ea_35f9_13aeba14b02e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/SslContext.java lines 1154–1165

    protected static KeyStore buildKeyStore(X509Certificate[] certChain, PrivateKey key,
                                  char[] keyPasswordChars, String keyStoreType)
            throws KeyStoreException, NoSuchAlgorithmException,
                   CertificateException, IOException {
        if (keyStoreType == null) {
            keyStoreType = KeyStore.getDefaultType();
        }
        KeyStore ks = KeyStore.getInstance(keyStoreType);
        ks.load(null, null);
        ks.setKeyEntry(ALIAS, key, keyPasswordChars, certChain);
        return ks;
    }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free