# TrustManager

public interface **TrustManager**

|---|---|---|
| Known Indirect Subclasses [X509ExtendedTrustManager](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/X509ExtendedTrustManager.html), [X509TrustManager](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/X509TrustManager.html) |---|---| | [X509ExtendedTrustManager](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/X509ExtendedTrustManager.html) | Extensions to the `X509TrustManager` interface to support SSL/TLS connection sensitive trust management. | | [X509TrustManager](https://developers.google.com/j2objc/javadoc/jre/reference/javax/net/ssl/X509TrustManager.html) | Instance of this interface manage which X509 certificates may be used to authenticate the remote side of a secure socket. | |||

This is the base interface for JSSE trust managers.


`TrustManager`s are responsible for managing the trust material
that is used when making trust decisions, and for deciding whether
credentials presented by a peer should be accepted.


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

##### See Also

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