|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.net.Socket | +--weblogic.security.SSL.SSLSocket
SSLSocket is used to create a SSL connection. The SSL handshake is implemented in this class. The public interface of this class is based on java.net.Socket. Additional methods include getClientCert and getServerCert, which return the client and server certificates, respectively. The renegotiate method enables SSL connection parameters to be renegotiated dynamically. The SSLParams object specifies the particular SSL connection parameters used for the particular SSLSocket.
Constructor Summary | |
SSLSocket(java.net.InetAddress ina,
int port,
weblogic.security.SSL.SSLParams params)
Deprecated. Create an SSL socket connection to the specified host and port, with the given SSL connection parameters. |
|
SSLSocket(java.net.Socket s)
Deprecated. Create an SSL socket from an already-connected cleartext socket. |
|
SSLSocket(java.lang.String host,
int port)
Deprecated. Create an SSL socket connection to the specified host and port. |
|
SSLSocket(java.lang.String host,
int port,
weblogic.security.SSL.SSLParams params)
Deprecated. Create an SSL socket connection to the specified host and port, with the given SSL connection parameters. |
Method Summary | |
void |
awaitClose()
Deprecated. Wait for connection to close. |
protected void |
clientInit()
Deprecated. |
void |
close()
Deprecated. Close the connection. |
void |
close(boolean wait)
Deprecated. Close the connection with optional wait. |
void |
ensureForceClose()
Deprecated. |
protected void |
getChangeCipherSpec()
Deprecated. |
SSLCertificate |
getClientCert()
Deprecated. Get the client certificate chain of the connection. |
protected weblogic.security.SSL.Handshake |
getHandshake()
Deprecated. |
java.net.InetAddress |
getInetAddress()
Deprecated. Get address that the socket is connected to. |
java.io.InputStream |
getInputStream()
Deprecated. Get the input stream for the SSLSocket. |
java.net.InetAddress |
getLocalAddress()
Deprecated. Get the local address that the socket is using. |
int |
getLocalPort()
Deprecated. Get the local port that the socket is using. |
java.io.OutputStream |
getOutputStream()
Deprecated. Get the output stream for the SSLSocket. |
weblogic.security.SSL.SSLParams |
getParams()
Deprecated. Get the parameters used to create this socket. |
int |
getPort()
Deprecated. Get port that the socket is connected to. |
SSLCertificate |
getServerCert()
Deprecated. Get the server certificate chain of the connection. |
weblogic.security.SSL.SessionParams |
getSessionParams()
Deprecated. Get the SSL parameters used by this SSLSocket. |
java.net.Socket |
getSocket()
Deprecated. Return underlying socket for setting socket level options. |
int |
getSoLinger()
Deprecated. |
int |
getSoTimeout()
Deprecated. |
weblogic.socket.SSLFilter |
getSSLFilter()
Deprecated. Get the SSLFilter. |
boolean |
getTcpNoDelay()
Deprecated. |
protected void |
initialize(java.net.Socket s,
boolean client,
weblogic.security.SSL.SSLParams params)
Deprecated. Initialize the SSLSocket. |
void |
performAcceptHandshake()
Deprecated. Do the handshake. |
void |
renegotiate(weblogic.security.SSL.SSLParams p)
Deprecated. Dynamically renegotiate the SSL connection parameters. |
protected void |
sendAlert(int level,
int description)
Deprecated. |
protected void |
sendChangeCipherSpec()
Deprecated. |
protected void |
sendHandshake(int type,
weblogic.security.SSL.HandshakeMessage b)
Deprecated. |
protected void |
sendRecord(weblogic.security.SSL.SSLPlaintext p)
Deprecated. |
protected void |
serverInit()
Deprecated. |
void |
setSoLinger(boolean onoff,
int time)
Deprecated. |
void |
setSoTimeout(int time)
Deprecated. |
void |
setTcpNoDelay(boolean b)
Deprecated. Overidden from super class. |
java.lang.String |
toString()
Deprecated. |
Methods inherited from class java.net.Socket |
bind,
connect,
connect,
getChannel,
getKeepAlive,
getLocalSocketAddress,
getOOBInline,
getReceiveBufferSize,
getRemoteSocketAddress,
getReuseAddress,
getSendBufferSize,
getTrafficClass,
isBound,
isClosed,
isConnected,
isInputShutdown,
isOutputShutdown,
sendUrgentData,
setKeepAlive,
setOOBInline,
setReceiveBufferSize,
setReuseAddress,
setSendBufferSize,
setSocketImplFactory,
setTrafficClass,
shutdownInput,
shutdownOutput |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SSLSocket(java.lang.String host, int port) throws java.net.UnknownHostException, java.io.IOException
host
- the hostport
- the portpublic SSLSocket(java.net.Socket s) throws java.io.IOException
socket
- a connected java.net.Socketpublic SSLSocket(java.lang.String host, int port, weblogic.security.SSL.SSLParams params) throws java.net.UnknownHostException, java.io.IOException
host
- the hostport
- the portparams
- the SSL connection parameterspublic SSLSocket(java.net.InetAddress ina, int port, weblogic.security.SSL.SSLParams params) throws java.net.UnknownHostException, java.io.IOException
host
- the hostport
- the portparams
- the SSL connection parametersMethod Detail |
public weblogic.socket.SSLFilter getSSLFilter()
public void performAcceptHandshake() throws java.io.IOException
protected void initialize(java.net.Socket s, boolean client, weblogic.security.SSL.SSLParams params) throws java.io.IOException
client
- true if client, false if serverparams
- the SSL connection parametersprotected void clientInit() throws java.io.IOException
protected void serverInit() throws java.io.IOException
protected void sendHandshake(int type, weblogic.security.SSL.HandshakeMessage b) throws java.io.IOException
protected void sendAlert(int level, int description) throws java.io.IOException
protected void sendChangeCipherSpec() throws java.io.IOException
protected void sendRecord(weblogic.security.SSL.SSLPlaintext p) throws java.io.IOException
protected weblogic.security.SSL.Handshake getHandshake() throws java.io.IOException
protected void getChangeCipherSpec() throws java.io.IOException
public void ensureForceClose()
public void close() throws java.io.IOException
public void close(boolean wait) throws java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
public java.io.OutputStream getOutputStream()
public java.net.InetAddress getInetAddress()
public int getPort()
public java.net.InetAddress getLocalAddress()
public int getLocalPort()
public void setTcpNoDelay(boolean b) throws java.net.SocketException
public boolean getTcpNoDelay() throws java.net.SocketException
public void setSoTimeout(int time) throws java.net.SocketException
public int getSoTimeout() throws java.net.SocketException
public void setSoLinger(boolean onoff, int time) throws java.net.SocketException
public int getSoLinger() throws java.net.SocketException
public java.net.Socket getSocket()
public void awaitClose() throws java.io.IOException
public SSLCertificate getServerCert()
public SSLCertificate getClientCert()
public weblogic.security.SSL.SessionParams getSessionParams()
public weblogic.security.SSL.SSLParams getParams()
public void renegotiate(weblogic.security.SSL.SSLParams p) throws java.io.IOException
params
- the new SSL connection parameterspublic java.lang.String toString()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs81 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |