public abstract class DTLSSocket extends DatagramSocket
DatagramSockets and provides secure socket using protocols such as the "IETF
"Datagram Transport Layer Security" (DTLS) protocols.
startHandshake which explicitly begins handshakes, or
If handshaking fails for any reason, the DTLSSocket is closed, and no further communications can be
done.
When DTLSSockets are first created, no handshaking is done. However, security is always provided by the
time that application data is sent over the connection.
DTLSSockets are created by DTLSSocketFactorys.
| Modifier and Type | Method and Description |
|---|---|
abstract void |
startHandshake()
Starts an DTLS handshake on this connection.
|
bind, close, connect, connect, disconnect, getBroadcast, getInetAddress, getLocalAddress, getLocalPort, getLocalSocketAddress, getPort, getReceiveBufferSize, getRemoteSocketAddress, getReuseAddress, getSendBufferSize, getSoTimeout, getTrafficClass, isBound, isClosed, isConnected, receive, send, setBroadcast, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setSoTimeout, setTrafficClasspublic abstract void startHandshake()
throws IOException
This method is synchronous for the initial handshake on a connection and returns when the negotiated handshake is complete. Some protocols may not support multiple handshakes on an existing socket and may throw an IOException.
IOException - on a network level error