KeyManager (Java Platform SE 8 )
Keywords: javax.net.ssl.KeyManager interface
Date: 2026-04-17

compact1, compact2, compact3
javax.net.ssl

## Interface KeyManager

- All Known Subinterfaces:
    X509KeyManager
  All Known Implementing Classes:
    X509ExtendedKeyManager

      public interface KeyManager

  This is the base interface for JSSE key managers.

  `KeyManager`s are responsible for managing the key material which is used to authenticate the local SSLSocket to its peer. If no key material is available, the socket will be unable to present authentication credentials.

  `KeyManager`s are created by either using a `KeyManagerFactory`, or by implementing one of the `KeyManager` subclasses.

  Since:
    1.4
  See Also:
    `KeyManagerFactory`

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.