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( )
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access