TrustManager (Java SE 26 & JDK 26)
Description: declaration: module: java.base, package: javax.net.ssl, interface: TrustManager
Keywords: javax.net.ssl.TrustManager interface

# Interface TrustManager

All Known Subinterfaces:
  `X509TrustManager`

All Known Implementing Classes:
  `X509ExtendedTrustManager`

public interface TrustManager
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.

Since:
  1.4
See Also:
  - `TrustManagerFactory`