|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecureChannel
An interface to secure channels. It is usually recommended to perform the initial SSL handshake with the separate handshake method, although the implementation may support embedded handshaking within the read and write methods. The shutdown process may also be started separately but should be called automatically by the close method of the implementation.
| Method Summary | |
|---|---|
int |
decrypted()
Returns the number of decrypted bytes not yet read. |
int |
encrypted()
Returns the number of encrypted bytes not yet flushed. |
boolean |
finished()
Returns true if this channel is finished with handshaking. |
void |
flush()
Flushes remaining encrypted bytes if any. |
int |
handshake(int ops)
Starts or continues handshaking with the specified operations. |
boolean |
shutdown()
Starts the shutdown sequence but does not close the channel. |
| Methods inherited from interface java.nio.channels.Channel |
|---|
close, isOpen |
| Method Detail |
|---|
boolean finished()
int encrypted()
int decrypted()
int handshake(int ops)
throws IOException
ops - the current ready operations set.
IOException - on I/O errors.
boolean shutdown()
throws IOException
IOException - on I/O errors.
void flush()
throws IOException
IOException - on I/O errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||