Package com.yubico.webauthn
Class RegisteredCredential
java.lang.Object
com.yubico.webauthn.RegisteredCredential
An abstraction of a credential registered to a particular user.
Instances of this class are not expected to be long-lived, and the library only needs to read them, never write them. You may at your discretion store them directly in your database, or assemble them from other components.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
boolean
@NonNull ByteArray
The credential ID of the credential.@NonNull ByteArray
The credential public key encoded in COSE_Key format, as defined in Section 7 of RFC 8152.long
The stored signature count of the credential.@NonNull ByteArray
The user handle of the user the credential is registered to.int
hashCode()
toString()
-
Method Details
-
builder
-
toBuilder
-
getCredentialId
The credential ID of the credential. -
getUserHandle
The user handle of the user the credential is registered to.- See Also:
-
getPublicKeyCose
-
getSignatureCount
public long getSignatureCount()The stored signature count of the credential.This is used to validate the
signature counter
in authentication assertions. -
equals
-
hashCode
public int hashCode() -
toString
-