Class PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder
java.lang.Object
org.springframework.security.web.webauthn.api.PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder
- Enclosing class:
- PublicKeyCredentialCreationOptions
public static final class PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder
extends Object
Used to build
PublicKeyCredentialCreationOptions
.- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionattestation
(AttestationConveyancePreference attestation) Sets thePublicKeyCredentialCreationOptions.getAttestation()
property.authenticatorSelection
(AuthenticatorSelectionCriteria authenticatorSelection) Sets thePublicKeyCredentialCreationOptions.getAuthenticatorSelection()
property.build()
Builds a newPublicKeyCredentialCreationOptions
Sets thePublicKeyCredentialCreationOptions.getChallenge()
property.customize
(Consumer<PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder> customizer) Allows customizing the builder using theConsumer
that is passed in.excludeCredentials
(List<PublicKeyCredentialDescriptor> excludeCredentials) Sets thePublicKeyCredentialCreationOptions.getExcludeCredentials()
property.extensions
(AuthenticationExtensionsClientInputs extensions) Sets thePublicKeyCredentialCreationOptions.getExtensions()
property.pubKeyCredParams
(List<PublicKeyCredentialParameters> pubKeyCredParams) Sets thePublicKeyCredentialCreationOptions.getPubKeyCredParams()
property.pubKeyCredParams
(PublicKeyCredentialParameters... pubKeyCredParams) Sets thePublicKeyCredentialCreationOptions.getPubKeyCredParams()
property.Sets thePublicKeyCredentialCreationOptions.getRp()
property.Sets thePublicKeyCredentialCreationOptions.getTimeout()
property.Sets thePublicKeyCredentialCreationOptions.getUser()
property.
-
Method Details
-
rp
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder rp(PublicKeyCredentialRpEntity rp) Sets thePublicKeyCredentialCreationOptions.getRp()
property.- Parameters:
rp
- the relying party- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
user
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder user(PublicKeyCredentialUserEntity user) Sets thePublicKeyCredentialCreationOptions.getUser()
property.- Parameters:
user
- the user entity- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
challenge
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder challenge(Bytes challenge) Sets thePublicKeyCredentialCreationOptions.getChallenge()
property.- Parameters:
challenge
- the challenge- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
pubKeyCredParams
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder pubKeyCredParams(PublicKeyCredentialParameters... pubKeyCredParams) Sets thePublicKeyCredentialCreationOptions.getPubKeyCredParams()
property.- Parameters:
pubKeyCredParams
- the public key credential parameters- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
pubKeyCredParams
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder pubKeyCredParams(List<PublicKeyCredentialParameters> pubKeyCredParams) Sets thePublicKeyCredentialCreationOptions.getPubKeyCredParams()
property.- Parameters:
pubKeyCredParams
- the public key credential parameters- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
timeout
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder timeout(Duration timeout) Sets thePublicKeyCredentialCreationOptions.getTimeout()
property.- Parameters:
timeout
- the timeout- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
excludeCredentials
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder excludeCredentials(List<PublicKeyCredentialDescriptor> excludeCredentials) Sets thePublicKeyCredentialCreationOptions.getExcludeCredentials()
property.- Parameters:
excludeCredentials
- the excluded credentials.- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
authenticatorSelection
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder authenticatorSelection(AuthenticatorSelectionCriteria authenticatorSelection) Sets thePublicKeyCredentialCreationOptions.getAuthenticatorSelection()
property.- Parameters:
authenticatorSelection
- the authenticator selection- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
attestation
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder attestation(AttestationConveyancePreference attestation) Sets thePublicKeyCredentialCreationOptions.getAttestation()
property.- Parameters:
attestation
- the attestation- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
extensions
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder extensions(AuthenticationExtensionsClientInputs extensions) Sets thePublicKeyCredentialCreationOptions.getExtensions()
property.- Parameters:
extensions
- the extensions- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
customize
public PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder customize(Consumer<PublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder> customizer) Allows customizing the builder using theConsumer
that is passed in.- Parameters:
customizer
- theConsumer
that can be used to customize thePublicKeyCredentialCreationOptions.PublicKeyCredentialCreationOptionsBuilder
- Returns:
- the PublicKeyCredentialCreationOptionsBuilder
-
build
Builds a newPublicKeyCredentialCreationOptions
- Returns:
- the new
PublicKeyCredentialCreationOptions
-