Class WebAuthnRelyingParty.Builder
java.lang.Object
com.revetsec.webauthn.WebAuthnRelyingParty.Builder
- Enclosing class:
WebAuthnRelyingParty
@NotThreadSafe
@CheckReturnValue
public static final class WebAuthnRelyingParty.Builder
extends Object
One caller-thread trusted configuration builder.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionallowedOrigins(@Nullable Set<@NonNull String> origins) Sets exact trusted HTTPS origins on the configured RP ID or its dot-delimited canonical subdomains.build()Builds the immutable RP without performing a store or gate callback.Inspects only the current configuration shape.credentialNamespace(@Nullable String namespace) Sets the app-controlled credential namespace.Selects the app-owned durable restore admission barrier.relyingPartyName(@Nullable String name) Sets a bounded RP display name.settings(@Nullable WebAuthnSettings settings) Selects bounded WebAuthn settings.stateSealer(@Nullable StateSealer sealer) Selects the app-provisioned record sealer.store(@Nullable WebAuthnStore store) Selects the app-owned authoritative store.toString()Redacts configuration.
-
Method Details
-
relyingPartyName
Sets a bounded RP display name.- Parameters:
name- RP name, or null to clear the required name- Returns:
- this builder
- Since:
- 1.0.0
-
allowedOrigins
Sets exact trusted HTTPS origins on the configured RP ID or its dot-delimited canonical subdomains. Eligibility is not a wildcard allowlist: each origin and port must be explicitly configured and is snapshotted into prepared ceremonies. Use canonical lowercase DNS names; omit the default HTTPS port.- Parameters:
origins- one to eight canonical origins, or null to clear the required set- Returns:
- this builder
- Since:
- 1.0.0
-
credentialNamespace
Sets the app-controlled credential namespace.- Parameters:
namespace- namespace, or null to clear the required namespace- Returns:
- this builder
- Since:
- 1.0.0
-
store
Selects the app-owned authoritative store.- Parameters:
store- store, or null to clear the required store- Returns:
- this builder
- Since:
- 1.0.0
-
stateSealer
Selects the app-provisioned record sealer.- Parameters:
sealer- sealer, or null to clear the required sealer- Returns:
- this builder
- Since:
- 1.0.0
-
recoveryGate
Selects the app-owned durable restore admission barrier.- Parameters:
gate- gate, or null to clear the required gate- Returns:
- this builder
- Since:
- 1.0.0
-
settings
Selects bounded WebAuthn settings. Null restores the selected defaults.- Parameters:
settings- settings or null for defaults- 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
Builds the immutable RP without performing a store or gate callback.- Returns:
- configured relying party
- Since:
- 1.0.0
-
toString
-