Uses of Interface javax.net.ssl.KeyManager (Java Platform SE 8 )
Date: 2026-04-22

## Uses of Interface
javax.net.ssl.KeyManager

- Packages that use KeyManager
  Package | Description
  --- | ---
  javax.net.ssl | Provides classes for the secure socket package.

- - ### Uses of KeyManager in javax.net.ssl

    Subinterfaces of KeyManager in javax.net.ssl
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `X509KeyManager` Instances of this interface manage which X509 certificate-based key pairs are used to authenticate the local side of a secure socket.

    Classes in javax.net.ssl that implement KeyManager
    Modifier and Type | Class and Description
    --- | ---
    `class` | `X509ExtendedKeyManager` Abstract class that provides for extension of the X509KeyManager interface.

    Methods in javax.net.ssl that return KeyManager
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract KeyManager[]` | KeyManagerFactorySpi.`engineGetKeyManagers()` Returns one key manager for each type of key material.
    `KeyManager[]` | KeyManagerFactory.`getKeyManagers()` Returns one key manager for each type of key material.

    Methods in javax.net.ssl with parameters of type KeyManager
    Modifier and Type | Method and Description
    --- | ---
    `protected abstract void` | SSLContextSpi.`engineInit(KeyManager[] km, TrustManager[] tm, SecureRandom sr)` Initializes this context.
    `void` | SSLContext.`init(KeyManager[] km, TrustManager[] tm, SecureRandom random)` Initializes this context.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.