public class DtlsEndpointContext extends MapBasedEndpointContext
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_CIPHER
The name of the attribute that contains the cipher suite used with
the DTLS session.
|
static String |
KEY_EPOCH
The name of the attribute that contains the epoch of the
DTLS session.
|
static String |
KEY_HANDSHAKE_TIMESTAMP
The name of the attribute that contains the timestamp of the last
handshake of the DTLS session.
|
static String |
KEY_RESUMPTION_TIMEOUT
The name of the attribute that contains a auto session resumption timeout
in milliseconds.
|
static String |
KEY_SESSION_ID
The name of the attribute that contains the DTLS session ID.
|
KEY_PREFIX_NONE_CRITICALID_TRUNC_LENGTH| Constructor and Description |
|---|
DtlsEndpointContext(InetSocketAddress peerAddress,
Principal peerIdentity,
String sessionId,
String epoch,
String cipher,
String timestamp)
Creates a context for DTLS session parameters.
|
DtlsEndpointContext(InetSocketAddress peerAddress,
String virtualHost,
Principal peerIdentity,
String sessionId,
String epoch,
String cipher,
String timestamp)
Creates a context for DTLS session parameters.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCipher()
Gets the name of the cipher suite in use for the DTLS session.
|
String |
getEpoch()
Gets the current epoch of the DTLS session.
|
String |
getHandshakeTimestamp()
Gets the timestamp in milliseconds of the last handshake.
|
String |
getSessionId()
Gets the identifier of the DTLS session.
|
String |
toString() |
addEntries, entries, get, hasCriticalEntriesgetPeerAddress, getPeerAddressAsString, getPeerIdentity, getVirtualHostpublic static final String KEY_SESSION_ID
public static final String KEY_EPOCH
public static final String KEY_CIPHER
public static final String KEY_HANDSHAKE_TIMESTAMP
public static final String KEY_RESUMPTION_TIMEOUT
"0", force a session resumption, "",
disable auto session resumption. None critical attribute, not considered
for matching.public DtlsEndpointContext(InetSocketAddress peerAddress, Principal peerIdentity, String sessionId, String epoch, String cipher, String timestamp)
peerAddress - peer address of endpoint contextpeerIdentity - peer identity of endpoint contextsessionId - the session's ID.epoch - the session's current read/write epoch.cipher - the cipher suite of the session's current read/write state.timestamp - the timestamp in milliseconds of the last handshake. See
System.currentTimeMillis().NullPointerException - if any of the parameters other than
peerIdentity are null.public DtlsEndpointContext(InetSocketAddress peerAddress, String virtualHost, Principal peerIdentity, String sessionId, String epoch, String cipher, String timestamp)
peerAddress - peer address of endpoint contextvirtualHost - the name of the virtual host at the peerpeerIdentity - peer identity of endpoint contextsessionId - the session's ID.epoch - the session's current read/write epoch.cipher - the cipher suite of the session's current read/write state.timestamp - the timestamp in milliseconds of the last handshake. See
System.currentTimeMillis().NullPointerException - if any of the parameters other than
peerIdentity are null.public final String getSessionId()
public final String getEpoch()
public final String getCipher()
public final String getHandshakeTimestamp()
System.currentTimeMillis()public String toString()
toString in class MapBasedEndpointContextCopyright © 2019 Eclipse Foundation. All rights reserved.