|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Extended socket functions that only apply to SSL Sockets
Field Summary | |
static int |
CLIENT
|
static int |
SERVER
|
Method Summary | |
java.util.Vector |
getCertificateChain()
get the certificate chain presented by the peer. |
int |
getCipherSuite()
get the cipherSuite that was negotiated on this socket |
SSLPolicyInt |
getPolicy()
Get the policy associated with this socket |
byte[] |
getSessionID()
Get the SessionID associated with this session |
int |
getVersion()
Get the version of SSL negotiated. |
void |
renegotiate(SSLPolicyInt policy)
Renegotiate this connection using the specified policy. |
void |
sendClose()
Send our half of the SSL close_notify handshake |
void |
waitForClose(boolean enforceFinished)
Wait to receive a close_notify from the other side. |
Field Detail |
public static final int CLIENT
public static final int SERVER
Method Detail |
public int getCipherSuite() throws java.io.IOException
public java.util.Vector getCertificateChain() throws java.io.IOException
public SSLPolicyInt getPolicy()
public byte[] getSessionID() throws java.io.IOException
public int getVersion() throws java.io.IOException
public void renegotiate(SSLPolicyInt policy) throws java.io.IOException
the
- policy specifiedjava.io.IOException
- if something goes wrong in renegotiationpublic void sendClose() throws java.io.IOException
java.io.IOException
- if the close_notify alert can't be sentpublic void waitForClose(boolean enforceFinished) throws java.io.IOException
enforceFinished
- insist that no more data be present on the connection before the close_notify is received. This ensures that the application has read all the data that the peer sentjava.io.IOException
- if the close_notify couldn't be read or if enforceFinished is true and more data was present.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |