AsyncAdvancedPskStore instead@Deprecated public class AsyncInMemoryPskStore extends AdvancedInMemoryPskStore
AdvancedPskStore.
Use 0 or negative delays for test with synchronous blocking
behaviour. And positive delays for test with asynchronous none-blocking
behaviour.MAC, pskStore| Constructor and Description |
|---|
AsyncInMemoryPskStore(PskStore pskStore)
Deprecated.
Create an advanced pskstore from
PskStore. |
| Modifier and Type | Method and Description |
|---|---|
int |
getDelay()
Deprecated.
Get delay milliseconds.
|
PskSecretResult |
requestPskSecretResult(ConnectionId cid,
ServerNames serverNames,
PskPublicInformation identity,
String hmacAlgorithm,
SecretKey otherSecret,
byte[] seed)
Deprecated.
Request psk secret result.
|
AsyncInMemoryPskStore |
setDelay(int delayMillis)
Deprecated.
Set delay milliseconds.
|
void |
setResultHandler(PskSecretResultHandler resultHandler)
Deprecated.
Set the handler for asynchronous master secret results.
|
AsyncInMemoryPskStore |
setSecretMode(boolean enableGenerateMasterSecret)
Deprecated.
Set secret mode.
|
void |
shutdown()
Deprecated.
Shutdown.
|
generateMasterSecret, getIdentity, hasEcdhePskSupportedpublic AsyncInMemoryPskStore(PskStore pskStore)
PskStore.
A call to shutdown() is required to cleanup the used resources
(executor).pskStore - psk storeNullPointerException - if store is nullpublic AsyncInMemoryPskStore setSecretMode(boolean enableGenerateMasterSecret)
enableGenerateMasterSecret - true to return generated master
secret, false for PSK secret key.public AsyncInMemoryPskStore setDelay(int delayMillis)
delayMillis - delay in milliseconds to report result. 0 or
negative delays using synchronous blocking behaviour. Positive
delays using asynchronous none-blocking behaviour.public int getDelay()
0 or negative delays using
synchronous blocking behaviour. Positive delays using
asynchronous none-blocking behaviour.public void shutdown()
public PskSecretResult requestPskSecretResult(ConnectionId cid, ServerNames serverNames, PskPublicInformation identity, String hmacAlgorithm, SecretKey otherSecret, byte[] seed)
AdvancedPskStorenull and process the request
asynchronously. The PskSecretResult must contain the CID, the
normalized identity and master secret or PSK secret key, if available. If
the result is not returned, it is passed asynchronously to the result
handler, provided during DTLSConnector initialization by
AdvancedPskStore.setResultHandler(PskSecretResultHandler).requestPskSecretResult in interface AdvancedPskStorerequestPskSecretResult in class AdvancedInMemoryPskStorecid - connection id for stateless asynchronous implementations.serverNames - server names. Maybe null, if SNI is not enabled
or not used by the client.identity - psk identity. Maybe normalized, if identity is available
in the store.hmacAlgorithm - HMAC algorithm name for PRF.otherSecret - other secret from ECDHE, or null. Must be
cloned for asynchronous use. See
RFC
5489, other secretseed - seed for PRF.null, if result is provided
asynchronous.public void setResultHandler(PskSecretResultHandler resultHandler)
AdvancedPskStoreDTLSConnector. Synchronous
implementations may just ignore this using an empty implementation.
Note: the type of the handler will change to HandshakeResultHandler with 3.0.setResultHandler in interface AdvancedPskStoresetResultHandler in class AdvancedInMemoryPskStoreresultHandler - handler for asynchronous master secret results. This
handler MUST NOT be called from the thread calling
AdvancedPskStore.requestPskSecretResult(ConnectionId, ServerNames, PskPublicInformation, String, SecretKey, byte[]),
instead just return the result there.Copyright © 2023 Eclipse Foundation. All rights reserved.