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
Modifier and TypeClassDescriptionstatic class
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
@NonNull ByteArray
The authenticator data returned by the authenticator.@NonNull CollectedClientData
AuthenticatorResponse.getClientDataJSON()
parsed as a domain object.@NonNull ByteArray
The 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()
.@NonNull ByteArray
The raw signature returned from the authenticator.The user handle returned from the authenticator, or empty if the authenticator did not return a user handle.int
hashCode()
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.yubico.webauthn.data.AuthenticatorResponse
getParsedAuthenticatorData
-
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. -
equals
-
hashCode
public int hashCode() -
toString
-
getAuthenticatorData
Description copied from interface:AuthenticatorResponse
The authenticator data returned by the authenticator. See §6.1 Authenticator Data.- Specified by:
getAuthenticatorData
in interfaceAuthenticatorResponse
-
getClientDataJSON
Description copied from interface:AuthenticatorResponse
The 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:
getClientDataJSON
in interfaceAuthenticatorResponse
-
getClientData
Description copied from interface:AuthenticatorResponse
AuthenticatorResponse.getClientDataJSON()
parsed as a domain object.- Specified by:
getClientData
in interfaceAuthenticatorResponse
-