# KeyManager

public interface **KeyManager**

|---|---|---|
| Known Indirect Subclasses [X509KeyManager](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/X509KeyManager.html) |---|---| | [X509KeyManager](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/X509KeyManager.html) | Instances of this interface manage which X509 certificate-based key pairs are used to authenticate the local side of a secure socket. | |||

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.

##### See Also

- `https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/KeyManagerFactory.html`