Class AssertionResult
RelyingParty.finishAssertion(FinishAssertionOptions).-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.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.TheRegisteredCredentialthat was returned byCredentialRepository.lookup(ByteArray, ByteArray)and whose public key was used to successfully verify the assertion signature.Deprecated.UsegetCredential().getCredentialId()instead.longThe new signature count of the credential used for the assertion.Deprecated.UsegetCredential().getUserHandle()instead.@NonNull StringThe username of the authenticated user.inthashCode()booleanDeprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.booleanDeprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.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.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:
-
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
RegisteredCredentialif no value is stored yet.CredentialRepositoryimplementations SHOULD set this value as thebackupEligible(Boolean)value when reconstructing thatRegisteredCredential.- Returns:
trueif 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.CredentialRepositoryimplementations SHOULD set this value as thebackupState(Boolean)value when reconstructing thatRegisteredCredential.- Returns:
trueif 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()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 count,backup eligibilityandbackup stateproperties 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()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
-