Package com.yubico.webauthn.data
Class AuthenticatorAssertionResponse
- java.lang.Object
 - 
- com.yubico.webauthn.data.AuthenticatorAssertionResponse
 
 
- 
- All Implemented Interfaces:
 AuthenticatorResponse
public final class AuthenticatorAssertionResponse extends java.lang.Object implements AuthenticatorResponse
Represents an authenticator's response to a client’s request for generation of a new authentication assertion given the WebAuthn Relying Party's challenge and OPTIONAL 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 Classes Modifier and Type Class Description static classAuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder.MandatoryStagesbuilder()booleanequals(java.lang.Object o)@NonNull ByteArraygetAuthenticatorData()The authenticator data returned by the authenticator.@NonNull CollectedClientDatagetClientData()AuthenticatorResponse.getClientDataJSON()parsed as a domain object.@NonNull ByteArraygetClientDataJSON()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 ByteArraygetSignature()The raw signature returned from the authenticator.java.util.Optional<ByteArray>getUserHandle()The user handle returned from the authenticator, or empty if the authenticator did not return a user handle.inthashCode()AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuildertoBuilder()java.lang.StringtoString()- 
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 Detail
- 
getUserHandle
public java.util.Optional<ByteArray> 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
public AuthenticatorAssertionResponse.AuthenticatorAssertionResponseBuilder toBuilder()
 
- 
getSignature
@NonNull public @NonNull ByteArray getSignature()
The raw signature returned from the authenticator. See §6.3.3 The authenticatorGetAssertion Operation. 
- 
equals
public boolean equals(java.lang.Object o)
- Overrides:
 equalsin classjava.lang.Object
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
getAuthenticatorData
@NonNull public @NonNull ByteArray getAuthenticatorData()
Description copied from interface:AuthenticatorResponseThe authenticator data returned by the authenticator. See §6.1 Authenticator Data.- Specified by:
 getAuthenticatorDatain interfaceAuthenticatorResponse
 
- 
getClientDataJSON
@NonNull public @NonNull ByteArray 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
@NonNull public @NonNull CollectedClientData getClientData()
Description copied from interface:AuthenticatorResponseAuthenticatorResponse.getClientDataJSON()parsed as a domain object.- Specified by:
 getClientDatain interfaceAuthenticatorResponse
 
 - 
 
 -