Class TotpAuthenticator.Builder
java.lang.Object
com.revetsec.totp.TotpAuthenticator.Builder
- Enclosing class:
TotpAuthenticator
Caller-thread configuration builder. Required dependencies have no permissive defaults.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Checks configuration without admission, storage, cryptographic-provider calls or thread startup.Sets the worker UTC source used only to confirm bounded clock health against store time.Inspects only the current configuration shape.credentialNamespace(@Nullable String credentialNamespace) Sets the stable account storage namespace.operationTimeout(@Nullable Duration operationTimeout) Sets one shrinking caller-thread deadline for admission, crypto, storage and conflict retries.recoveryEpoch(@Nullable String recoveryEpoch) Sets the externally durable, never-reused recovery generation.recoveryGate(@Nullable TotpRecoveryGate recoveryGate) Sets externally durable deployment/recovery admission.stateSealer(@Nullable StateSealer stateSealer) Sets immutable sealing-key configuration for typed permanent records.Sets authoritative storage with atomic recovery fencing.toString()Redacts builder contents.
-
Method Details
-
credentialNamespace
Sets the stable account storage namespace.- Parameters:
credentialNamespace- visible ASCII namespace, 1–128 characters; null clears this required setting- Returns:
- this builder
- Since:
- 1.0.0
-
recoveryEpoch
Sets the externally durable, never-reused recovery generation.- Parameters:
recoveryEpoch- visible ASCII epoch, 1–128 characters; null clears this required setting- Returns:
- this builder
- Since:
- 1.0.0
-
store
Sets authoritative storage with atomic recovery fencing.- Parameters:
store- application-owned thread-safe store; null clears this required setting- Returns:
- this builder
- Since:
- 1.0.0
-
stateSealer
Sets immutable sealing-key configuration for typed permanent records.- Parameters:
stateSealer- the sealer; null clears this required setting. Retain old opening keys until records are migrated- Returns:
- this builder
- Since:
- 1.0.0
-
recoveryGate
Sets externally durable deployment/recovery admission.- Parameters:
recoveryGate- application-owned thread-safe gate; null clears this required setting- Returns:
- this builder
- Since:
- 1.0.0
-
clock
Sets the worker UTC source used only to confirm bounded clock health against store time.- Parameters:
clock- the clock, or null for the system UTC clock- Returns:
- this builder
- Since:
- 1.0.0
-
operationTimeout
Sets one shrinking caller-thread deadline for admission, crypto, storage and conflict retries.- Parameters:
operationTimeout- from one second to 30 seconds, or null for five seconds- Returns:
- this builder
- Since:
- 1.0.0
-
configurationDiagnostics
Inspects only the current configuration shape. The immutable, ordered result contains fixed codes and no supplied values; it does not call application dependencies.- Returns:
- every missing required setting, or an empty list
- Since:
- 1.0.0
-
build
Checks configuration without admission, storage, cryptographic-provider calls or thread startup.- Returns:
- the immutable authenticator
- Since:
- 1.0.0
-
toString
-