Provides classes for the secure socket package. Using the secure socket classes, you can communicate using SSL or a related security protocol to reliably detect any errors introduced into the network byte stream and to optionally encrypt the data and/or authenticate the communicating peers.
Interface Summary Interface Description HandshakeCompletedListenerThis interface is implemented by any class which wants to receive notifications about the completion of an SSL protocol handshake on a given SSL connection. HostnameVerifierThis class is the base interface for hostname verification. KeyManagerThis is the base interface for JSSE key managers. ManagerFactoryParametersThis class is the base interface for providing algorithm-specific information to a KeyManagerFactory or TrustManagerFactory. SSLSessionIn SSL, sessions are used to describe an ongoing relationship between two entities. SSLSessionBindingListenerThis interface is implemented by objects which want to know when they are being bound or unbound from a SSLSession. SSLSessionContextA
SSLSessionContextrepresents a set of
SSLSessions associated with a single entity.
TrustManagerThis is the base interface for JSSE trust managers. X509KeyManagerInstances of this interface manage which X509 certificate-based key pairs are used to authenticate the local side of a secure socket. X509TrustManagerInstance of this interface manage which X509 certificates may be used to authenticate the remote side of a secure socket.
Class Summary Class Description CertPathTrustManagerParametersA wrapper for CertPathParameters. ExtendedSSLSessionExtends the
SSLSessioninterface to support additional session attributes.
HandshakeCompletedEventThis event indicates that an SSL handshake completed on a given SSL connection. HttpsURLConnection
HttpURLConnectionwith support for https-specific features.
KeyManagerFactoryThis class acts as a factory for key managers based on a source of key material. KeyManagerFactorySpiThis class defines the Service Provider Interface (SPI) for the
KeyStoreBuilderParametersA parameters object for X509KeyManagers that encapsulates a List of KeyStore.Builders. SNIHostNameInstances of this class represent a server name of type
host_namein a Server Name Indication (SNI) extension.
SNIMatcherInstances of this class represent a matcher that performs match operations on an
SNIServerNameInstances of this class represent a server name in a Server Name Indication (SNI) extension. SSLContextInstances of this class represent a secure socket protocol implementation which acts as a factory for secure socket factories or
SSLContextSpiThis class defines the Service Provider Interface (SPI) for the
SSLEngineA class which enables secure communications using protocols such as the Secure Sockets Layer (SSL) or IETF RFC 2246 "Transport Layer Security" (TLS) protocols, but is transport independent. SSLEngineResultAn encapsulation of the result state produced by
SSLParametersEncapsulates parameters for an SSL/TLS/DTLS connection. SSLPermissionThis class is for various network permissions. SSLServerSocketThis class extends
ServerSocketand provides secure server sockets using protocols such as the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocols.
SSLSessionBindingEventThis event is propagated to a SSLSessionBindingListener. SSLSocketThis class extends
Socketand provides secure sockets using protocols such as the "Secure Sockets Layer" (SSL) or IETF "Transport Layer Security" (TLS) protocols.
StandardConstantsStandard constants definitions TrustManagerFactoryThis class acts as a factory for trust managers based on a source of trust material. TrustManagerFactorySpiThis class defines the Service Provider Interface (SPI) for the
X509ExtendedKeyManagerAbstract class that provides for extension of the X509KeyManager interface. X509ExtendedTrustManagerExtensions to the
X509TrustManagerinterface to support SSL/TLS/DTLS connection sensitive trust management.
Enum Summary Enum Description SSLEngineResult.HandshakeStatusAn
SSLEngineResultenum describing the current handshaking state of this
SSLEngineResultenum describing the overall result of the
Exception Summary Exception Description SSLExceptionIndicates some kind of error detected by an SSL subsystem. SSLHandshakeExceptionIndicates that the client and server could not negotiate the desired level of security. SSLKeyExceptionReports a bad SSL key. SSLPeerUnverifiedExceptionIndicates that the peer's identity has not been verified. SSLProtocolExceptionReports an error in the operation of the SSL protocol.