Class AssertionResult
RelyingParty.finishAssertion(FinishAssertionOptions)
.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.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.UsegetCredential()
.getCredentialId()
instead.long
The new signature count of the credential used for the assertion.Deprecated.UsegetCredential()
.getUserHandle()
instead.@NonNull String
The username of the authenticated user.int
hashCode()
boolean
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.boolean
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.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.boolean
Check whether the user verification as performed during the authentication ceremony.toString()
-
Method Details
-
getCredentialId
Deprecated.UsegetCredential()
.getCredentialId()
instead.The credential ID of the credential used for the assertion. -
getUserHandle
Deprecated.UsegetCredential()
.getUserHandle()
instead.The user handle of the authenticated user.- See Also:
-
isUserVerified
public boolean isUserVerified()Check whether the user verification as performed during the authentication ceremony.This flag is also available via
PublicKeyCredential
.getResponse()
.getParsedAuthenticatorData()
.getFlags()
.UV
- Returns:
true
if and only if the authenticator claims to have performed user verification during the authentication ceremony.- See Also:
-
isBackupEligible
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.Check whether the asserted credential is backup eligible, using the BE flag in the authenticator data.You SHOULD store this value in your representation of the corresponding
RegisteredCredential
if no value is stored yet.CredentialRepository
implementations SHOULD set this value as thebackupEligible(Boolean)
value when reconstructing thatRegisteredCredential
.- Returns:
true
if and only if the created credential is backup eligible. NOTE that this is only a hint and not a guarantee, unless backed by a trusted authenticator attestation.- See Also:
-
isBackedUp
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.Get the current backup state of the asserted credential, using the BS flag in the authenticator data.You SHOULD update this value in your representation of a
RegisteredCredential
.CredentialRepository
implementations SHOULD set this value as thebackupState(Boolean)
value when reconstructing thatRegisteredCredential
.- Returns:
true
if and only if the created credential is believed to currently be backed up. NOTE that this is only a hint and not a guarantee, unless backed by a trusted authenticator attestation.- See Also:
-
getAuthenticatorAttachment
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.The authenticator attachment modality in effect at the time the asserted credential was used. -
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:
-
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.
-
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
,backup eligibility
andbackup state
properties in this object will reflect the state before the assertion operation, not the new state. When updating your database state, use the signature counter and backup state fromgetSignatureCount()
,isBackupEligible()
andisBackedUp()
instead. -
getUsername
The username of the authenticated user.- 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
-