public final class AssertionResult
extends java.lang.Object
RelyingParty.finishAssertion(FinishAssertionOptions).| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Optional<AuthenticatorAttachment> |
getAuthenticatorAttachment()
Deprecated.
EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
the standard matures.
|
java.util.Optional<AuthenticatorAssertionExtensionOutputs> |
getAuthenticatorExtensionOutputs()
The authenticator
extension outputs, if any.
|
java.util.Optional<ClientAssertionExtensionOutputs> |
getClientExtensionOutputs()
The client
extension outputs, if any.
|
RegisteredCredential |
getCredential()
The
RegisteredCredential that was returned by CredentialRepository.lookup(ByteArray, ByteArray) and whose public key was used to
successfully verify the assertion signature. |
ByteArray |
getCredentialId()
Deprecated.
Use
getCredential().getCredentialId() instead. |
long |
getSignatureCount()
The new signature
count of the credential used for the assertion.
|
ByteArray |
getUserHandle()
Deprecated.
Use
getCredential().getUserHandle() instead. |
@NonNull java.lang.String |
getUsername()
The username of the authenticated user.
|
int |
hashCode() |
boolean |
isBackedUp()
Deprecated.
EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
the standard matures.
|
boolean |
isBackupEligible()
Deprecated.
EXPERIMENTAL: This feature is from a not yet mature standard; it could change as
the standard matures.
|
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 than the
stored one. |
boolean |
isSuccess()
true if the assertion was verified successfully. |
java.lang.String |
toString() |
@Deprecated public ByteArray getCredentialId()
getCredential().getCredentialId() instead.@Deprecated public ByteArray getUserHandle()
getCredential().getUserHandle() instead.UserIdentity.getId(),
getUsername()@Deprecated public boolean isBackupEligible()
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 the backupEligible(Boolean) value when reconstructing that RegisteredCredential.
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.@Deprecated public boolean isBackedUp()
You SHOULD update this value in your representation of a RegisteredCredential.
CredentialRepository implementations SHOULD set this value as the backupState(Boolean)
value when reconstructing that RegisteredCredential.
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.@Deprecated public java.util.Optional<AuthenticatorAttachment> getAuthenticatorAttachment()
public long getSignatureCount()
You should update this value in your database.
AuthenticatorData.getSignatureCounter()public java.util.Optional<ClientAssertionExtensionOutputs> getClientExtensionOutputs()
This is present if and only if at least one extension output is present in the return value.
public java.util.Optional<AuthenticatorAssertionExtensionOutputs> getAuthenticatorExtensionOutputs()
This is present if and only if at least one extension output is present in the return value.
public boolean isSuccess()
true if the assertion was verified successfully.public RegisteredCredential getCredential()
RegisteredCredential that was returned by CredentialRepository.lookup(ByteArray, ByteArray) and whose public key was used to
successfully verify the assertion signature.
NOTE: The signature count, backup eligibility and backup 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 from getSignatureCount(), isBackupEligible() and isBackedUp() instead.
@NonNull public @NonNull java.lang.String getUsername()
getUserHandle()public boolean isSignatureCounterValid()
true if and only if at least one of the following is true:
signature counter value in the
assertion was strictly greater than the
stored one.
signature counter value in the
assertion and the stored one were both
zero.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object