public interface IuOneTimeNumberConfig
Provides configuration properties for tuning
IuOneTimeNumber
instances.-
Method Summary
Modifier and TypeMethodDescriptiondefault int
Gets the maximum number of concurrent nonce requests to allow per client.default Duration
Gets the maximum time to allow a pending one-time number value to be accepted.default void
publish
(IuAuthorizationChallenge challenge) Broadcasts aIuAuthorizationChallenge
event to all subscribers.default void
subscribe
(Consumer<IuAuthorizationChallenge> challengeSubscriber) Subscribes the one-time number generator to externalIuAuthorizationChallenge
events.
-
Method Details
-
getTimeToLive
Gets the maximum time to allow a pending one-time number value to be accepted.- Returns:
Duration
-
getMaxConcurrency
default int getMaxConcurrency()Gets the maximum number of concurrent nonce requests to allow per client.- Returns:
- maximum number of concurrent nonce requests
-
subscribe
Subscribes the one-time number generator to externalIuAuthorizationChallenge
events.- Parameters:
challengeSubscriber
- Receives aConsumer
for publishingIuAuthorizationChallenge
events received from other nodes.
-
publish
Broadcasts aIuAuthorizationChallenge
event to all subscribers.- Parameters:
challenge
-IuAuthorizationChallenge
event
-