Name

TrustManager

Synopsis

This is a marker interface to identify trust manager objects. A trust manager is responsible for examining the authentication credentials (such as a certificate chain) presented by the remote host and deciding whether to trust those credentials and accept them. A TrustManager is usually used an SSL client to decide whether the SSL server is authentic, but may also be used by an SSL server when client authentication is also required.

Use a TrustManagerFactory to obtain TrustManager objects. TrustManager objects returned by a TrustManagerFactory can always be cast to a subinterface specific to a specific type of keys. See X509TrustManager, for exmaple.

public interface TrustManager {
}

Implementations

X509TrustManager

Passed To

SSLContext.init( ), SSLContextSpi.engineInit( )

Returned By

TrustManagerFactory.getTrustManagers( ), TrustManagerFactorySpi.engineGetTrustManagers( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.