gnu.javax.net.ssl.provider

Class SSLSocketImpl


public class SSLSocketImpl
extends SSLSocket

Constructor Summary

SSLSocketImpl(SSLContextImpl contextImpl, String host, int port)
SSLSocketImpl(SSLContextImpl contextImpl, String host, int port, Socket underlyingSocket, boolean autoClose)

Method Summary

@Override
InetAddress getInetAddress()
@Override
InetAddress getLocalAddress()
@Override
InputStream getInputStream()
@Override
OutputStream getOutputStream()
@Override
SSLSession getSession()
@Override
SocketAddress getRemoteSocketAddress()
@Override
SocketChannel getChannel()
@Override
String[] getEnabledCipherSuites()
@Override
String[] getEnabledProtocols()
@Override
String[] getSupportedCipherSuites()
@Override
String[] getSupportedProtocols()
@Override
boolean getEnableSessionCreation()
@Override
boolean getKeepAlive()
@Override
boolean getNeedClientAuth()
@Override
boolean getOOBInline()
@Override
boolean getReuseAddress()
@Override
boolean getTcpNoDelay()
@Override
boolean getUseClientMode()
@Override
boolean getWantClientAuth()
@Override
boolean isBound()
@Override
boolean isClosed()
@Override
boolean isConnected()
@Override
boolean isInputShutdown()
@Override
boolean isOutputShutdown()
SocketAddress
getLocalSocketAddress()
int
getSoLinger()
@Override
int getLocalPort()
@Override
int getPort()
@Override
int getReceiveBufferSize()
@Override
int getSendBufferSize()
@Override
int getSoTimeout()
@Override
int getTrafficClass()
@Override
void addHandshakeCompletedListener(HandshakeCompletedListener listener)
@Override
void bind(SocketAddress bindpoint)
@Override
void close()
@Override
void connect(SocketAddress endpoint)
@Override
void connect(SocketAddress endpoint, int timeout)
@Override
void removeHandshakeCompletedListener(HandshakeCompletedListener listener)
@Override
void sendUrgentData(int x)
@Override
void setEnableSessionCreation(boolean enable)
@Override
void setEnabledCipherSuites(String[] suites)
@Override
void setEnabledProtocols(String[] protocols)
@Override
void setKeepAlive(boolean on)
@Override
void setNeedClientAuth(boolean needAuth)
@Override
void setOOBInline(boolean on)
@Override
void setReceiveBufferSize(int size)
@Override
void setReuseAddress(boolean reuseAddress)
@Override
void setSendBufferSize(int size)
@Override
void setSoLinger(boolean on, int linger)
@Override
void setSoTimeout(int timeout)
@Override
void setTcpNoDelay(boolean on)
@Override
void setTrafficClass(int tc)
@Override
void setUseClientMode(boolean clientMode)
@Override
void setWantClientAuth(boolean wantAuth)
@Override
void shutdownInput()
@Override
void shutdownOutput()
@Override
void startHandshake()

Methods inherited from class javax.net.ssl.SSLSocket

addHandshakeCompletedListener, getEnableSessionCreation, getEnabledCipherSuites, getEnabledProtocols, getNeedClientAuth, getSession, getSupportedCipherSuites, getSupportedProtocols, getUseClientMode, getWantClientAuth, removeHandshakeCompletedListener, setEnableSessionCreation, setEnabledCipherSuites, setEnabledProtocols, setNeedClientAuth, setUseClientMode, setWantClientAuth, startHandshake

Methods inherited from class java.net.Socket

bind, close, connect, connect, getChannel, getInetAddress, getInputStream, getKeepAlive, getLocalAddress, getLocalPort, getLocalSocketAddress, getOOBInline, getOutputStream, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoLinger, getSoTimeout, getTcpNoDelay, getTrafficClass, isBound, isClosed, isConnected, isInputShutdown, isOutputShutdown, sendUrgentData, setKeepAlive, setOOBInline, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoLinger, setSoTimeout, setSocketImplFactory, setTcpNoDelay, setTrafficClass, shutdownInput, shutdownOutput, toString

Methods inherited from class java.lang.Object

clone, equals, extends Object> getClass, finalize, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Details

SSLSocketImpl

public SSLSocketImpl(SSLContextImpl contextImpl,
                     String host,
                     int port)

SSLSocketImpl

public SSLSocketImpl(SSLContextImpl contextImpl,
                     String host,
                     int port,
                     Socket underlyingSocket,
                     boolean autoClose)

Method Details

InetAddress getInetAddress

public @Override InetAddress getInetAddress()

InetAddress getLocalAddress

public @Override InetAddress getLocalAddress()

InputStream getInputStream

public @Override InputStream getInputStream()
            throws IOException

OutputStream getOutputStream

public @Override OutputStream getOutputStream()
            throws IOException

SSLSession getSession

public @Override SSLSession getSession()

SocketAddress getRemoteSocketAddress

public @Override SocketAddress getRemoteSocketAddress()

SocketChannel getChannel

public @Override SocketChannel getChannel()

String[] getEnabledCipherSuites

public @Override String[] getEnabledCipherSuites()

String[] getEnabledProtocols

public @Override String[] getEnabledProtocols()

String[] getSupportedCipherSuites

public @Override String[] getSupportedCipherSuites()

String[] getSupportedProtocols

public @Override String[] getSupportedProtocols()

boolean getEnableSessionCreation

public @Override boolean getEnableSessionCreation()

boolean getKeepAlive

public @Override boolean getKeepAlive()
            throws SocketException

boolean getNeedClientAuth

public @Override boolean getNeedClientAuth()

boolean getOOBInline

public @Override boolean getOOBInline()
            throws SocketException

boolean getReuseAddress

public @Override boolean getReuseAddress()
            throws SocketException

boolean getTcpNoDelay

public @Override boolean getTcpNoDelay()
            throws SocketException

boolean getUseClientMode

public @Override boolean getUseClientMode()

boolean getWantClientAuth

public @Override boolean getWantClientAuth()

boolean isBound

public @Override boolean isBound()

boolean isClosed

public @Override boolean isClosed()

boolean isConnected

public @Override boolean isConnected()

boolean isInputShutdown

public @Override boolean isInputShutdown()

boolean isOutputShutdown

public @Override boolean isOutputShutdown()

getLocalSocketAddress

public SocketAddress getLocalSocketAddress()
Overrides:
getLocalSocketAddress in interface Socket

getSoLinger

public int getSoLinger()
            throws SocketException
Overrides:
getSoLinger in interface Socket

int getLocalPort

public @Override int getLocalPort()

int getPort

public @Override int getPort()

int getReceiveBufferSize

public @Override int getReceiveBufferSize()
            throws SocketException

int getSendBufferSize

public @Override int getSendBufferSize()
            throws SocketException

int getSoTimeout

public @Override int getSoTimeout()
            throws SocketException

int getTrafficClass

public @Override int getTrafficClass()
            throws SocketException

void addHandshakeCompletedListener

public @Override void addHandshakeCompletedListener(HandshakeCompletedListener listener)

void bind

public @Override void bind(SocketAddress bindpoint)
            throws IOException

void close

public @Override void close()
            throws IOException

void connect

public @Override void connect(SocketAddress endpoint)
            throws IOException

void connect

public @Override void connect(SocketAddress endpoint,
                              int timeout)
            throws IOException

void removeHandshakeCompletedListener

public @Override void removeHandshakeCompletedListener(HandshakeCompletedListener listener)

void sendUrgentData

public @Override void sendUrgentData(int x)
            throws IOException

void setEnableSessionCreation

public @Override void setEnableSessionCreation(boolean enable)

void setEnabledCipherSuites

public @Override void setEnabledCipherSuites(String[] suites)

void setEnabledProtocols

public @Override void setEnabledProtocols(String[] protocols)

void setKeepAlive

public @Override void setKeepAlive(boolean on)
            throws SocketException

void setNeedClientAuth

public @Override void setNeedClientAuth(boolean needAuth)

void setOOBInline

public @Override void setOOBInline(boolean on)
            throws SocketException

void setReceiveBufferSize

public @Override void setReceiveBufferSize(int size)
            throws SocketException

void setReuseAddress

public @Override void setReuseAddress(boolean reuseAddress)
            throws SocketException

void setSendBufferSize

public @Override void setSendBufferSize(int size)
            throws SocketException

void setSoLinger

public @Override void setSoLinger(boolean on,
                                  int linger)
            throws SocketException

void setSoTimeout

public @Override void setSoTimeout(int timeout)
            throws SocketException

void setTcpNoDelay

public @Override void setTcpNoDelay(boolean on)
            throws SocketException

void setTrafficClass

public @Override void setTrafficClass(int tc)
            throws SocketException

void setUseClientMode

public @Override void setUseClientMode(boolean clientMode)

void setWantClientAuth

public @Override void setWantClientAuth(boolean wantAuth)

void shutdownInput

public @Override void shutdownInput()
            throws IOException

void shutdownOutput

public @Override void shutdownOutput()
            throws IOException

void startHandshake

public @Override void startHandshake()
            throws IOException

SSLSocketImpl.java -- implementation of an SSL client socket. Copyright (C) 2006 Free Software Foundation, Inc. This file is a part of GNU Classpath. GNU Classpath is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. GNU Classpath is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GNU Classpath; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Linking this library statically or dynamically with other modules is making a combined work based on this library. Thus, the terms and conditions of the GNU General Public License cover the whole combination. As a special exception, the copyright holders of this library give you permission to link this library with independent modules to produce an executable, regardless of the license terms of these independent modules, and to copy and distribute the resulting executable under terms of your choice, provided that you also meet, for each linked independent module, the terms and conditions of the license of that module. An independent module is a module which is not derived from or based on this library. If you modify this library, you may extend this exception to your version of the library, but you are not obligated to do so. If you do not wish to do so, delete this exception statement from your version.