Package com.yubico.webauthn.data
Class AuthenticatorAssertionResponse
java.lang.Object
com.yubico.webauthn.data.AuthenticatorAssertionResponse
- All Implemented Interfaces:
AuthenticatorResponse
Represents an authenticator's response to a client’s request for generation of a new
authentication assertion given the WebAuthn Relying Party's PublicKeyCredentialRequestOptions.getChallenge() challenge} and OPTIONAL PublicKeyCredentialRequestOptions.getAllowCredentials() list of credentials} it is aware of.
This response contains a cryptographic signature proving possession of the
credential private key, and optionally evidence of user consent to a specific transaction.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuilder()boolean@NonNull ByteArrayThe authenticator data returned by the authenticator.@NonNull CollectedClientDataAuthenticatorResponse.getClientDataJSON()parsed as a domain object.@NonNull ByteArrayThe JSON-serialized client data (see §5.10.1 Client Data Used in WebAuthn Signatures (dictionaryCollectedClientData)) passed to the authenticator by the client in the call to eithernavigator.credentials.create()ornavigator.credentials.get().AuthenticatorResponse.getAuthenticatorData()parsed as a domain object.@NonNull ByteArrayThe raw signature returned from the authenticator.The user handle returned from the authenticator, or empty if the authenticator did not return a user handle.inthashCode()toString()
-
Method Details
-
getUserHandle
The user handle returned from the authenticator, or empty if the authenticator did not return a user handle. See §6.3.3 The authenticatorGetAssertion Operation. -
builder
public static AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder.MandatoryStages builder() -
toBuilder
-
getSignature
The raw signature returned from the authenticator. See §6.3.3 The authenticatorGetAssertion Operation. -
getParsedAuthenticatorData
Description copied from interface:AuthenticatorResponseAuthenticatorResponse.getAuthenticatorData()parsed as a domain object.- Specified by:
getParsedAuthenticatorDatain interfaceAuthenticatorResponse
-
equals
-
hashCode
public int hashCode() -
toString
-
getAuthenticatorData
Description copied from interface:AuthenticatorResponseThe authenticator data returned by the authenticator. See §6.1 Authenticator Data.- Specified by:
getAuthenticatorDatain interfaceAuthenticatorResponse
-
getClientDataJSON
Description copied from interface:AuthenticatorResponseThe JSON-serialized client data (see §5.10.1 Client Data Used in WebAuthn Signatures (dictionaryCollectedClientData)) passed to the authenticator by the client in the call to eithernavigator.credentials.create()ornavigator.credentials.get(). The exact JSON serialization MUST be preserved, as the hash of the serialized client data has been computed over it.- Specified by:
getClientDataJSONin interfaceAuthenticatorResponse
-
getClientData
Description copied from interface:AuthenticatorResponseAuthenticatorResponse.getClientDataJSON()parsed as a domain object.- Specified by:
getClientDatain interfaceAuthenticatorResponse
-