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 TypeMethodDescriptionboolean
The authenticator extension outputs, if any.The client extension outputs, if any.TheRegisteredCredential
that was returned byCredentialRepository.lookup(ByteArray, ByteArray)
and whose public key was used to successfully verify the assertion signature.Deprecated.long
The new signature count of the credential used for the assertion.Deprecated.UsegetCredential()
.RegisteredCredential.getUserHandle()
() getUserHandle()} instead.@NonNull String
The username of the authenticated user.int
hashCode()
boolean
true
if and only if at least one of the following is true: Thesignature counter value
in the assertion was strictly greater thanthe stored one
.boolean
true
if the assertion was verified successfully.com.yubico.webauthn.AssertionResult.AssertionResultBuilder
toString()
-
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()true
if the assertion was verified successfully. -
getCredential
TheRegisteredCredential
that was returned byCredentialRepository.lookup(ByteArray, ByteArray)
and whose public key was used to successfully verify the assertion signature.NOTE: The
signature count
in 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()true
if and only if at least one of the following is true:- The
signature counter value
in the assertion was strictly greater thanthe stored one
. - The
signature counter value
in the assertion andthe stored one
were both zero.
- The
-
equals
-
hashCode
public int hashCode() -
toString
-
getCredential()
.getCredentialId()
instead.