public interface ConnectionIdGenerator
The dtls client can chose:
If the client doesn't support it, the server must reply with a server hello without the new hello extension, regardless of the configuration.
If the client supports or uses it, the server can chose.
The behavior of a peer within the above rules could be configured using
DtlsConnectorConfig.Builder.setConnectionIdGenerator(org.eclipse.californium.scandium.dtls.ConnectionIdGenerator).
null as connection id generatorConnectionIdGenerator, which returns false on
useConnectionId()ConnectionIdGenerator, which returns true on
useConnectionId() and generates and reads connection ids.| Modifier and Type | Method and Description |
|---|---|
ConnectionId |
createConnectionId()
Creates a connection id.
|
ConnectionId |
read(org.eclipse.californium.elements.util.DatagramReader reader)
Read connection id from record header bytes.
|
boolean |
useConnectionId()
Indicates, if connection ids are used or just supported.
|
boolean useConnectionId()
true, if a connection is used, false, if only a
connection id from the other peer is supported.ConnectionId createConnectionId()
null, if this generator only
supports connection ids from the other peer.ConnectionId read(org.eclipse.californium.elements.util.DatagramReader reader)
reader - reader with header bytes at the position of the connection
id.null, if this generator only
supports connection ids from the other peer.Copyright © 2023 Eclipse Foundation. All rights reserved.