Android Guides | Samples

Javax.Net.Ssl Namespace

This package provides classes and interfaces needed to use the Secure Sockets Layer (SSL) protocol and the successor Transport Layer Security (TLS) protocol.

Remarks

This package provides classes and interfaces needed to use the Secure Sockets Layer (SSL) protocol and the successor Transport Layer Security (TLS) protocol. The API allows for both client and server sockets, the selection of desired SSL and TLS protocol versions, and the selection of desired cipher suites. The IX509TrustManager interface allows customization of certificate chain verification. The IX509KeyManager interface and X509ExtendedKeyManager class allows the specification of a server's required certificate or a client's optional client certificate. Android uses code from and .

Classes

TypeReason
CertPathTrustManagerParametersCertification path parameters to provide to certification path based ITrustManager.
HandshakeCompletedEventThe event object encapsulating the information about a completed SSL handshake on a SSL connection.
HttpsURLConnectionAn HttpURLConnection for HTTPS ().
IHandshakeCompletedListenerThe listener to be implemented to receive event notifications on completion of SSL handshake on an SSL connection.
IHostnameVerifierThe interface to be used to provide hostname verification functionality.
IKeyManagerThis is the interface to implement in order to mark a class as a JSSE key managers so that key managers can be easily grouped.
IManagerFactoryParametersThe marker interface for key manager factory parameters.
ISSLSessionThe interface representing an SSL session.
ISSLSessionBindingListenerThe interface to be implemented by any object that requires notification when data objects are bound to (or unbound from) an SSLSession.
ISSLSessionContextA collection of SSLSessions.
ITrustManagerThe marker interface for JSSE trust managers.
IX509KeyManagerA Key Manager for X509 certificate-based key pairs.
IX509TrustManagerThe trust manager for X509 certificates to be used to perform authentication for secure sockets.
KeyManagerFactoryThe public API for KeyManagerFactory implementations.
KeyManagerFactorySpiThe Service Provider Interface (SPI) for the KeyManagerFactory class.
KeyStoreBuilderParametersThe parameters for KeyManagers.
SSLContextThe public API for secure socket protocol implementations.
SSLContextSpiThe Service Provider Interface (SPI) for the SSLContext class.
SSLEngineThe abstract implementation of secure communications using SSL, TLS, or other protocols.
SSLEngineResultThe result object describing the state of the SSLEngine produced by the wrap() and unwrap() operations.
SSLEngineResult+HandshakeStatusThe enum describing the state of the current handshake.
SSLEngineResult+StatusThe enum describing the result of the SSLEngine operation.
SSLExceptionThe base class for all SSL related exceptions.
SSLHandshakeExceptionThe exception that is thrown when a handshake could not be completed successfully.
SSLKeyExceptionThe exception that is thrown when an invalid SSL key is encountered.
SSLParametersSSL handshake parameters that include protocols, cipher suites, and client authentication requirements.
SSLPeerUnverifiedExceptionThe exception that is thrown when the identity of a peer has not been verified.
SSLPermissionLegacy security code; do not use.
SSLProtocolExceptionThe exception that is thrown when an error in the operation of the SSL protocol is encountered.
SSLServerSocketThe extension of ServerSocket which provides secure server sockets based on protocols like SSL, TLS, or others.
SSLServerSocketFactoryThe factory for SSL server sockets.
SSLSessionBindingEventThe event sent to an SSLSessionBindingListener when the listener object is bound (ISSLSession.PutValue(String,Object)) or unbound (ISSLSession.RemoveValue(String)) to an SSLSession.
SSLSocketThe extension of Socket providing secure protocols like SSL (Secure Sockets Layer) or TLS (Transport Layer Security).
SSLSocketFactoryThe abstract factory implementation to create SSLSockets.
TrustManagerFactoryThe factory for TrustManagers based on KeyStore or provider specific implementation.
TrustManagerFactorySpiThe Service Provider Interface (SPI) for the TrustManagerFactory class.
X509ExtendedKeyManagerThe abstract extension for the X509KeyManager interface.