Package com.yubico.webauthn
Class AssertionResult
- java.lang.Object
-
- com.yubico.webauthn.AssertionResult
-
public final class AssertionResult extends java.lang.Object
The result of a call toRelyingParty.finishAssertion(FinishAssertionOptions)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.util.Optional<AuthenticatorAssertionExtensionOutputs>
getAuthenticatorExtensionOutputs()
The authenticator extension outputs, if any.java.util.Optional<ClientAssertionExtensionOutputs>
getClientExtensionOutputs()
The client extension outputs, if any.@NonNull ByteArray
getCredentialId()
The credential ID of the credential used for the assertion.long
getSignatureCount()
The new signature count of the credential used for the assertion.@NonNull ByteArray
getUserHandle()
The user handle of the authenticated user.@NonNull java.lang.String
getUsername()
The username of the authenticated user.@NonNull java.util.List<java.lang.String>
getWarnings()
Zero or more human-readable messages about non-critical issues.int
hashCode()
boolean
isSignatureCounterValid()
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
isSuccess()
true
if the assertion was verified successfully.com.yubico.webauthn.AssertionResult.AssertionResultBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
getClientExtensionOutputs
public java.util.Optional<ClientAssertionExtensionOutputs> 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
public java.util.Optional<AuthenticatorAssertionExtensionOutputs> 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.
-
getCredentialId
@NonNull public @NonNull ByteArray getCredentialId()
The credential ID of the credential used for the assertion.
-
getUserHandle
@NonNull public @NonNull ByteArray getUserHandle()
The user handle of the authenticated user.- See Also:
- User Handle,
UserIdentity.getId()
,getUsername()
-
getUsername
@NonNull public @NonNull java.lang.String getUsername()
The username of the authenticated user.- See Also:
getUserHandle()
-
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:
AuthenticatorData.getSignatureCounter()
-
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
-
getWarnings
@NonNull public @NonNull java.util.List<java.lang.String> getWarnings()
Zero or more human-readable messages about non-critical issues.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-