TrustManager


TrustManager javax.net.ssl

Java 1.4

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( )



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net