Class AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
java.lang.Object
org.springframework.security.web.webauthn.api.AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
- Enclosing class:
AuthenticatorAssertionResponse
public static final class AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
extends Object
Builds a
AuthenticatorAssertionResponse.- Since:
- 6.4
-
Method Summary
Modifier and TypeMethodDescriptionattestationObject(@Nullable Bytes attestationObject) Set theattestationObjectproperty.authenticatorData(@Nullable Bytes authenticatorData) Set theAuthenticatorAssertionResponse.getAuthenticatorData()property.build()Builds theAuthenticatorAssertionResponse.clientDataJSON(@Nullable Bytes clientDataJSON) Set theAuthenticatorResponse.getClientDataJSON()property.Set theAuthenticatorAssertionResponse.getSignature()property.userHandle(@Nullable Bytes userHandle) Set theAuthenticatorAssertionResponse.getUserHandle()property.
-
Method Details
-
authenticatorData
public AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder authenticatorData(@Nullable Bytes authenticatorData) Set theAuthenticatorAssertionResponse.getAuthenticatorData()property.- Parameters:
authenticatorData- the authenticator data.- Returns:
- the
AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
-
signature
public AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder signature(@Nullable Bytes signature) Set theAuthenticatorAssertionResponse.getSignature()property.- Parameters:
signature- the signature- Returns:
- the
AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
-
userHandle
public AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder userHandle(@Nullable Bytes userHandle) Set theAuthenticatorAssertionResponse.getUserHandle()property.- Parameters:
userHandle- the user handle- Returns:
- the
AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
-
attestationObject
public AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder attestationObject(@Nullable Bytes attestationObject) Set theattestationObjectproperty.- Parameters:
attestationObject- the attestation object- Returns:
- the
AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
-
clientDataJSON
public AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder clientDataJSON(@Nullable Bytes clientDataJSON) Set theAuthenticatorResponse.getClientDataJSON()property.- Parameters:
clientDataJSON- the client data JSON- Returns:
- the
AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder
-
build
Builds theAuthenticatorAssertionResponse.- Returns:
- the
AuthenticatorAssertionResponse
-