Package com.yubico.webauthn
Class AssertionResult
- java.lang.Object
-
- com.yubico.webauthn.AssertionResult
-
public final class AssertionResult extends java.lang.ObjectThe result of a call toRelyingParty.finishAssertion(FinishAssertionOptions).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)@NonNull ByteArraygetCredentialId()The credential ID of the credential used for the assertion.longgetSignatureCount()The new signature count of the credential used for the assertion.@NonNull ByteArraygetUserHandle()The user handle of the authenticated user.@NonNull java.lang.StringgetUsername()The username of the authenticated user.@NonNull java.util.List<java.lang.String>getWarnings()Zero or more human-readable messages about non-critical issues.inthashCode()booleanisSignatureCounterValid()trueif and only if thesignature counter valuein the assertion was strictly greater thanthe stored one.booleanisSuccess()trueif the assertion was verified successfully.com.yubico.webauthn.AssertionResult.AssertionResultBuildertoBuilder()java.lang.StringtoString()
-
-
-
Method Detail
-
toBuilder
public com.yubico.webauthn.AssertionResult.AssertionResultBuilder toBuilder()
-
isSuccess
public boolean isSuccess()
trueif 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()
trueif and only if thesignature counter valuein the assertion was strictly greater thanthe stored one.
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-