java.lang.Object | |
↳ | org.bouncycastle.crypto.tls.TlsProtocolHandler |
An implementation of all high level protocols in TLS 1.0.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes this connection.
| |||||||||||
This method is deprecated.
use version taking TlsClient
| |||||||||||
Connects to the remote system using client authentication
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Make sure the InputStream is now empty.
| |||||||||||
Read data from the network.
| |||||||||||
Send some application data to the remote system.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Closes this connection.
IOException | If something goes wrong during closing. |
---|
This method is deprecated.
use version taking TlsClient
Connects to the remote system.
verifyer | Will be used when a certificate is received to verify that this certificate is accepted by the client. |
---|
IOException | If handshake was not successful. |
---|
Connects to the remote system using client authentication
IOException | If handshake was not successful. |
---|
Make sure the InputStream is now empty. Fail otherwise.
is | The InputStream to check. |
---|
IOException | If is is not empty. |
---|
Read data from the network. The method will return immediately, if there is still some data left in the buffer, or block until some application data has been read from the network.
buf | The buffer where the data will be copied to. |
---|---|
offset | The position where the data will be placed in the buffer. |
len | The maximum number of bytes to read. |
IOException | If something goes wrong during reading data. |
---|
Send some application data to the remote system.
The method will handle fragmentation internally.buf | The buffer with the data. |
---|---|
offset | The position in the buffer where the data is placed. |
len | The length of the data. |
IOException | If something goes wrong during sending. |
---|