Class RegisteredCredential
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()
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.toString()
-
Method Details
-
isBackupEligible
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.The state of the BE flag when this credential was registered, if known.If absent, it is not known whether or not this credential is backup eligible.
If present and
true
, the credential is backup eligible: it can be backed up in some way, most commonly by syncing the private key to a cloud account.If present and
false
, the credential is not backup eligible: it cannot be backed up in any way.CredentialRepository
implementations SHOULD set this to the first known value returned byRegistrationResult.isBackupEligible()
orAssertionResult.isBackupEligible()
, if known. If unknown,CredentialRepository
implementations SHOULD set this tonull
or not set this value. -
isBackedUp
Deprecated.EXPERIMENTAL: This feature is from a not yet mature standard; it could change as the standard matures.The last known state of the BS flag for this credential, if known.If absent, the backup state of the credential is not known.
If present and
true
, the credential is believed to be currently backed up.If present and
false
, the credential is believed to not be currently backed up.CredentialRepository
implementations SHOULD set this to the most recent value returned byAssertionResult.isBackedUp()
orRegistrationResult.isBackedUp()
, if known. If unknown,CredentialRepository
implementations SHOULD set this tonull
or not set this value. -
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
-