Class FinishAssertionOptions.FinishAssertionOptionsBuilder
- Enclosing class:
- FinishAssertionOptions
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
callerTokenBindingId
(@NonNull ByteArray callerTokenBindingId) The token binding ID of the connection to the client, if any.callerTokenBindingId
(@NonNull Optional<ByteArray> callerTokenBindingId) The token binding ID of the connection to the client, if any.isSecurePaymentConfirmation
(boolean isSecurePaymentConfirmation) Deprecated.EXPERIMENTAL: This is an experimental feature.request
(@NonNull AssertionRequest request) The request that theresponse
is a response to.response
(@NonNull PublicKeyCredential<AuthenticatorAssertionResponse, ClientAssertionExtensionOutputs> response) The client's response to therequest
.toString()
-
Method Details
-
callerTokenBindingId
public FinishAssertionOptions.FinishAssertionOptionsBuilder callerTokenBindingId(@NonNull @NonNull Optional<ByteArray> callerTokenBindingId) The token binding ID of the connection to the client, if any.- See Also:
-
callerTokenBindingId
public FinishAssertionOptions.FinishAssertionOptionsBuilder callerTokenBindingId(@NonNull @NonNull ByteArray callerTokenBindingId) The token binding ID of the connection to the client, if any.- See Also:
-
request
public FinishAssertionOptions.FinishAssertionOptionsBuilder request(@NonNull @NonNull AssertionRequest request) The request that theresponse
is a response to.- Returns:
this
.
-
response
public FinishAssertionOptions.FinishAssertionOptionsBuilder response(@NonNull @NonNull PublicKeyCredential<AuthenticatorAssertionResponse, ClientAssertionExtensionOutputs> response) The client's response to therequest
.- Returns:
this
.- See Also:
-
isSecurePaymentConfirmation
@Deprecated public FinishAssertionOptions.FinishAssertionOptionsBuilder isSecurePaymentConfirmation(boolean isSecurePaymentConfirmation) Deprecated.EXPERIMENTAL: This is an experimental feature. It is likely to change or be deleted before reaching a mature release.EXPERIMENTAL FEATURE:If set to
false
(the default), the"type"
property in the collected client data of the assertion will be verified to equal"webauthn.get"
.If set to
true
, it will instead be verified to equal"payment.get"
.NOTE: If you're using Secure Payment Confirmation (SPC), you likely also need to relax the origin validation logic. Right now this library only supports matching against a finite
Set
of acceptable origins. If necessary, your application may validate the origin externally (seePublicKeyCredential.getResponse()
,AuthenticatorAssertionResponse.getClientData()
andCollectedClientData.getOrigin()
) and construct a newRelyingParty
instance for each SPC response, setting theorigins
setting on that instance to contain the pre-validated origin value.Better support for relaxing origin validation may be added as the feature matures.
-
build
-
toString
-