Name
Class javax.net.ssl.SSLSocket
Synopsis
This class represents one peer in an
SSL connection. Client side instances of this class are retrieved from an SSLSocketFactory
instance; servers obtain instances of this class from the accept( )
method of an SSL server socket.
Class Definition
public abstract class javax.net.ssl.SSLSocket extends java.net.Socket { // Constructors protected SSLSocket(String, int); protected SSLSocket(String, int, InetAddress, int); protected SSLSocket(InetAddress, int); protected SSLSocket(InetAddress, int, InetAddress, int); protected SSLSocket( ); // Instance Methods public abstract void addHandshakeCompletedListener( HandshakeCompletedListener); public abstract boolean getEnableSessionCreation( ); public abstract String[] getEnabledCipherSuites( ); public abstract boolean getNeedClientAuth( ); public abstract SSLSession getSession( ); public abstract String[] getSupportedCipherSuites( ); public abstract boolean getUseClientMode( ); public abstract void removeHandshakeCompletedListener( HandshakeCompletedListener); public abstract void setEnableSessionCreation(boolean); public abstract void setEnabledCipherSuites(String[]); public abstract void setNeedClientAuth(boolean); public abstract void setUseClientMode(boolean); public abstract void startHandshake( ); }
See also
SSLServerSocket , SSLSocketFactory
|
Get Java Security, 2nd 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.