|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SSLSocketXInt
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 |
---|
static final int CLIENT
static final int SERVER
Method Detail |
---|
int getCipherSuite() throws java.io.IOException
java.io.IOException
java.util.Vector getCertificateChain() throws java.io.IOException
java.io.IOException
SSLPolicyInt getPolicy()
byte[] getSessionID() throws java.io.IOException
java.io.IOException
int getVersion() throws java.io.IOException
java.io.IOException
void renegotiate(SSLPolicyInt policy) throws java.io.IOException
the
- policy specified
java.io.IOException
- if something goes wrong in renegotiationvoid sendClose() throws java.io.IOException
java.io.IOException
- if the close_notify alert can't be sentvoid 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 sent
java.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |