Package com.yubico.webauthn
Class AssertionResult
java.lang.Object
com.yubico.webauthn.AssertionResult
The result of a call to
RelyingParty.finishAssertion(FinishAssertionOptions).-
Method Summary
Modifier and TypeMethodDescriptionbooleanThe authenticator extension outputs, if any.The client extension outputs, if any.TheRegisteredCredentialthat was returned byCredentialRepository.lookup(ByteArray, ByteArray)and whose public key was used to successfully verify the assertion signature.Deprecated.longThe new signature count of the credential used for the assertion.Deprecated.UsegetCredential().RegisteredCredential.getUserHandle()() getUserHandle()} instead.@NonNull StringThe username of the authenticated user.inthashCode()booleantrueif and only if at least one of the following is true: Thesignature counter valuein the assertion was strictly greater thanthe stored one.booleantrueif the assertion was verified successfully.com.yubico.webauthn.AssertionResult.AssertionResultBuildertoString()
-
Method Details
-
getCredentialId
Deprecated.UsegetCredential().getCredentialId()instead.The credential ID of the credential used for the assertion. -
getUserHandle
Deprecated.UsegetCredential().RegisteredCredential.getUserHandle()() getUserHandle()} instead.The user handle of the authenticated user.- See Also:
-
getClientExtensionOutputs
The client extension outputs, if any.This is present if and only if at least one extension output is present in the return value.
-
getAuthenticatorExtensionOutputs
The authenticator extension outputs, if any.This is present if and only if at least one extension output is present in the return value.
-
toBuilder
public com.yubico.webauthn.AssertionResult.AssertionResultBuilder toBuilder() -
isSuccess
public boolean isSuccess()trueif the assertion was verified successfully. -
getCredential
TheRegisteredCredentialthat was returned byCredentialRepository.lookup(ByteArray, ByteArray)and whose public key was used to successfully verify the assertion signature.NOTE: The
signature countin this object will reflect the signature counter state before the assertion operation, not the new counter value. When updating your database state, use the signature counter fromgetSignatureCount()instead. -
getUsername
The username of the authenticated user.- See Also:
-
getSignatureCount
public long getSignatureCount()The new signature count of the credential used for the assertion.You should update this value in your database.
- See Also:
-
isSignatureCounterValid
public boolean isSignatureCounterValid()trueif and only if at least one of the following is true:- The
signature counter valuein the assertion was strictly greater thanthe stored one. - The
signature counter valuein the assertion andthe stored onewere both zero.
- The
-
equals
-
hashCode
public int hashCode() -
toString
-
getCredential().getCredentialId()instead.