public interface IuOneTimeNumberConfig
Provides configuration properties for tuning
IuOneTimeNumber
instances.-
Method Summary
Modifier and TypeMethodDescriptiondefault intGets the maximum number of concurrent nonce requests to allow per client.default DurationGets the maximum time to allow a pending one-time number value to be accepted.default voidpublish(IuAuthorizationChallenge challenge) Broadcasts aIuAuthorizationChallengeevent to all subscribers.default voidsubscribe(Consumer<IuAuthorizationChallenge> challengeSubscriber) Subscribes the one-time number generator to externalIuAuthorizationChallengeevents.
-
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 externalIuAuthorizationChallengeevents.- Parameters:
challengeSubscriber- Receives aConsumerfor publishingIuAuthorizationChallengeevents received from other nodes.
-
publish
Broadcasts aIuAuthorizationChallengeevent to all subscribers.- Parameters:
challenge-IuAuthorizationChallengeevent
-