Class PublicKeyCredential.PublicKeyCredentialBuilder<R extends AuthenticatorResponse>
java.lang.Object
org.springframework.security.web.webauthn.api.PublicKeyCredential.PublicKeyCredentialBuilder<R>
- Type Parameters:
R
- the response type
- Enclosing class:
- PublicKeyCredential<R extends AuthenticatorResponse>
public static final class PublicKeyCredential.PublicKeyCredentialBuilder<R extends AuthenticatorResponse>
extends Object
- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionauthenticatorAttachment
(AuthenticatorAttachment authenticatorAttachment) Sets thePublicKeyCredential.getAuthenticatorAttachment()
property.build()
Creates a newPublicKeyCredential
clientExtensionResults
(AuthenticationExtensionsClientOutputs clientExtensionResults) Sets thePublicKeyCredential.getClientExtensionResults()
property.Sets thePublicKeyCredential.getId()
propertySets thePublicKeyCredential.getRawId()
property.Sets thePublicKeyCredential.getResponse()
property.type
(PublicKeyCredentialType type) Sets thePublicKeyCredential.getType()
property.
-
Method Details
-
id
Sets thePublicKeyCredential.getId()
property- Parameters:
id
- the id- Returns:
- the PublicKeyCredentialBuilder
-
type
Sets thePublicKeyCredential.getType()
property.- Parameters:
type
- the type- Returns:
- the PublicKeyCredentialBuilder
-
rawId
Sets thePublicKeyCredential.getRawId()
property.- Parameters:
rawId
- the raw id- Returns:
- the PublicKeyCredentialBuilder
-
response
Sets thePublicKeyCredential.getResponse()
property.- Parameters:
response
- the response- Returns:
- the PublicKeyCredentialBuilder
-
authenticatorAttachment
public PublicKeyCredential.PublicKeyCredentialBuilder authenticatorAttachment(AuthenticatorAttachment authenticatorAttachment) Sets thePublicKeyCredential.getAuthenticatorAttachment()
property.- Parameters:
authenticatorAttachment
- the authenticator attachement- Returns:
- the PublicKeyCredentialBuilder
-
clientExtensionResults
public PublicKeyCredential.PublicKeyCredentialBuilder clientExtensionResults(AuthenticationExtensionsClientOutputs clientExtensionResults) Sets thePublicKeyCredential.getClientExtensionResults()
property.- Parameters:
clientExtensionResults
- the client extension results- Returns:
- the PublicKeyCredentialBuilder
-
build
Creates a newPublicKeyCredential
- Returns:
- a new
PublicKeyCredential
-