public class DtlsParams extends Object implements VisitableConfig
| Modifier and Type | Field and Description |
|---|---|
Integer |
antiReplayFilterWindowExtension
Limit the anti replay filter window extension to given number of postponed records.
|
String |
autoHandshakeTimeout
The period in milliseconds [ms] after which, without exchanged messages,
new messages will initiate a handshake.
|
Integer |
deferredMsgCapacity
The maximum number of messages sent during a handshake that are processed deferred after the handshake.
|
Integer |
dtlsConnectorThreadCount
The number of connector threads.
|
Integer |
dtlsReceiverThreadCount
The number of receiver threads.
|
Integer |
handshakeCapacity
Maximum number of jobs for handshake results.
|
Integer |
handshakeRecordBufferSize
The size [Bytes] of the buffer for Handshake records with future handshake message sequence number or
records with future epochs.
|
Integer |
inboundMsgCapacity
Maximum number of jobs for inbound messages.
|
Integer |
maxConnections
The maximum number of active connections.
|
Integer |
outboundMsgCapacity
Maximum number of jobs for outbound messages.
|
boolean |
removeStaleDoublePrincipals
Remove stale connections, if the principal has also a newer connection.
|
String |
staleConnectionThreshold
Stale connections (no messages are exchanged within the threshold)
can get removed for new connections.
|
boolean |
updateAddressOnNewerCidRecords
Update the ip-address from DTLS 1.2 CID records only for newer records
based on epoch/sequence_number.
|
boolean |
useAntiReplayFilter
Use anti replay filter.
|
boolean |
useExtendedAntiReplayFilterWindow
Use extended anti replay filter window passing postponed records.
|
Integer |
verifyPeersOnResumptionThreshold
The threshold defines the maximum percentage of handshakes without HELLO_VERIFY_REQUEST.
|
| Constructor and Description |
|---|
DtlsParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ConfigVisitor visitor)
Accept visitor.
|
boolean |
equals(Object obj) |
int |
hashCode() |
@Parameter @Optional(defaultValue="150000") @Summary(value="The maximum number of active connections.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer maxConnections
@Parameter @Optional(defaultValue="30m") @Summary(value="Stale connections (no messages are exchanged within the threshold)\n can get removed for new connections.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public String staleConnectionThreshold
@Parameter @Optional(defaultValue="true") @Summary(value="Update the ip-address from DTLS 1.2 CID records only for newer records\nbased on epoch/sequence_number.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean updateAddressOnNewerCidRecords
@Parameter @Optional(defaultValue="false") @Summary(value="Remove stale connections, if the principal has also a newer connection. \nRequires to have unique principals.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean removeStaleDoublePrincipals
@Parameter @Optional(defaultValue="50000") @Summary(value="Maximum number of jobs for outbound messages.\nThe value must be 64 or larger.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer outboundMsgCapacity
@Parameter @Optional(defaultValue="50000") @Summary(value="Maximum number of jobs for inbound messages.\nThe value must be 64 or larger.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer inboundMsgCapacity
@Parameter @Optional @Summary(value="The number of receiver threads. \nDefault value is 2 if number of CORES > 3, otherwise 1.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer dtlsReceiverThreadCount
@Parameter @Optional @Summary(value="The number of connector threads. \nThese threads handle most cryptographic \nfunctions for both incoming and outgoing messages. \nDefault value is the number of CORES.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer dtlsConnectorThreadCount
@Parameter @Optional(defaultValue="5000") @Summary(value="Maximum number of jobs for handshake results.\nThe value must be 64 or larger.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer handshakeCapacity
@Parameter @Optional(defaultValue="8192") @Summary(value="The size [Bytes] of the buffer for Handshake records with future handshake message sequence number \nor records with future epochs.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer handshakeRecordBufferSize
@Parameter @Optional(defaultValue="10") @Summary(value="The maximum number of messages sent during a handshake that are processed deferred after the handshake.\nAbove this number messages are dropped.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer deferredMsgCapacity
@Parameter
@Optional
@Summary(value="The period after which, without exchanged messages, \nnew messages will initiate a handshake. Clients use {@code 30[s]} as \na common value to compensate assumed NAT timeouts. Not used by servers.\nDefault no auto handshake is initiated")
@Expression(value=NOT_SUPPORTED)
@ParameterDsl(allowReferences=false)
public String autoHandshakeTimeout
30000ms as
a common value to compensate assumed NAT timeouts. Not used by servers.@Parameter @Optional(defaultValue="30") @Summary(value="The threshold defines the maximum percentage of handshakes without HELLO_VERIFY_REQUEST.\nWhen 0 peers are verified on all resumptions.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer verifyPeersOnResumptionThreshold
@Parameter @Optional(defaultValue="true") @Summary(value="Use anti replay filter.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean useAntiReplayFilter
@Parameter @Optional(defaultValue="false") @Summary(value="Use anti replay filter.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public boolean useExtendedAntiReplayFilterWindow
@Parameter @Optional @Summary(value="Limit the anti replay filter window extension to given number of postponed records.") @Expression(value=NOT_SUPPORTED) @ParameterDsl(allowReferences=false) public Integer antiReplayFilterWindowExtension
public void accept(ConfigVisitor visitor) throws ConfigException
accept in interface VisitableConfigvisitor - The visitor of the configuration object.ConfigException - When the visit was not successful.public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2019–2024 Teslanet.nl. All rights reserved.