Class WebAuthnSettings.Builder
java.lang.Object
com.revetsec.webauthn.WebAuthnSettings.Builder
- Enclosing class:
WebAuthnSettings
One caller-thread settings builder. Passing null to a setter restores its default.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a stable settings snapshot.ceremonyLifetime(@Nullable Duration value) Sets the ceremony validity duration.Sets the decoded attestation object limit.Sets the decoded authenticator data limit.Sets the decoded client data limit.Sets the active credential exclusion limit.Sets the raw completion body limit.operationTimeout(@Nullable Duration value) Sets the caller-thread operation budget.toString()
-
Method Details
-
maximumResponseBodyBytes
Sets the raw completion body limit.- Parameters:
value- byte limit, 1 through 262144, or null for default- Returns:
- this builder
- Since:
- 1.0.0
-
maximumClientDataJsonBytes
Sets the decoded client data limit.- Parameters:
value- byte limit, 1 through 16384, or null for default- Returns:
- this builder
- Since:
- 1.0.0
-
maximumAttestationObjectBytes
Sets the decoded attestation object limit.- Parameters:
value- byte limit, 1 through 65536, or null for default- Returns:
- this builder
- Since:
- 1.0.0
-
maximumAuthenticatorDataBytes
Sets the decoded authenticator data limit.- Parameters:
value- byte limit, 37 through 32768, or null for default- Returns:
- this builder
- Since:
- 1.0.0
-
maximumExcludedCredentials
Sets the active credential exclusion limit.- Parameters:
value- enrollment exclusion limit, 1 through 64, or null for default- Returns:
- this builder
- Since:
- 1.0.0
-
ceremonyLifetime
Sets the ceremony validity duration.- Parameters:
value- 30 seconds through 10 minutes, or null for default- Returns:
- this builder
- Since:
- 1.0.0
-
operationTimeout
Sets the caller-thread operation budget.- Parameters:
value- one second through 30 seconds, or null for default- Returns:
- this builder
- Since:
- 1.0.0
-
build
Builds a stable settings snapshot.- Returns:
- immutable settings
- Since:
- 1.0.0
-
toString
-