java.lang.Object
com.webauthn4j.server.ServerProperty.Builder
- Enclosing class:
- ServerProperty
-
Method Summary
Modifier and TypeMethodDescriptionSets a topOriginPredicate that accepts any topOrigins.build()Sets the expected challengeSets an originPredicate that accepts the specified origin.originPredicate(@NotNull OriginPredicate value) Sets a predicate to verify the origin.Sets an originPredicate that accepts the specified origins.Sets the expected Relying Party ID.Sets a topOriginPredicate that accepts the specified topOrigin.Sets a predicate to verify the topOrigin.topOrigins(@Nullable Set<Origin> value) Sets a topOriginPredicate that accepts the specified topOrigins.
-
Method Details
-
origin
Sets an originPredicate that accepts the specified origin. For complicated conditions, useoriginPredicate(OriginPredicate)instead.- Parameters:
value- the expected origin- Returns:
- the builder instance for method chaining
-
origins
Sets an originPredicate that accepts the specified origins. For complicated conditions, useoriginPredicate(OriginPredicate)instead.- Parameters:
value- the expected origin- Returns:
- the builder instance for method chaining
-
originPredicate
Sets a predicate to verify the origin. This allows for complex origin validation logic beyond simple equality or set membership checks.- Parameters:
value- the predicate used to validate origins- Returns:
- the builder instance for method chaining
-
rpId
Sets the expected Relying Party ID.- Parameters:
value- the rpId value- Returns:
- the builder instance for method chaining
-
challenge
Sets the expected challenge- Parameters:
value- the challenge value- Returns:
- the builder instance for method chaining
-
topOrigin
Sets a topOriginPredicate that accepts the specified topOrigin. For complicated conditions, usetopOriginPredicate(OriginPredicate)instead.- Parameters:
value- the expected topOrigin- Returns:
- the builder instance for method chaining
-
topOrigins
Sets a topOriginPredicate that accepts the specified topOrigins. For complicated conditions, usetopOriginPredicate(OriginPredicate)instead.- Parameters:
value- the expected topOrigin- Returns:
- the builder instance for method chaining
-
anyTopOrigin
Sets a topOriginPredicate that accepts any topOrigins. This allows WebAuthn operations in any iframe scenario regardless of the top origin.- Returns:
- the builder instance for method chaining
-
topOriginPredicate
Sets a predicate to verify the topOrigin. This allows verification of the top origin in iframe scenarios. If not called or null is passed, cross-origin requests in an iframe will not be allowed.- Parameters:
value- the predicate used to verify top origin. If null, cross-origin requests will not be allowed.- Returns:
- the builder instance for method chaining
-
build
-