public final class RegisteredCredential
extends java.lang.Object
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.
Modifier and Type | Class and Description |
---|---|
static class |
RegisteredCredential.RegisteredCredentialBuilder |
Modifier and Type | Method and Description |
---|---|
static RegisteredCredential.RegisteredCredentialBuilder.MandatoryStages |
builder() |
boolean |
equals(java.lang.Object o) |
@NonNull ByteArray |
getCredentialId()
The credential ID of the
credential.
|
@NonNull ByteArray |
getPublicKeyCose()
The credential public key encoded in COSE_Key format, as defined in Section 7 of RFC 8152.
|
long |
getSignatureCount()
The stored signature count of the
credential.
|
@NonNull ByteArray |
getUserHandle()
The user handle of the user the
credential is registered to.
|
int |
hashCode() |
RegisteredCredential.RegisteredCredentialBuilder |
toBuilder() |
java.lang.String |
toString() |
public static RegisteredCredential.RegisteredCredentialBuilder.MandatoryStages builder()
public RegisteredCredential.RegisteredCredentialBuilder toBuilder()
@NonNull public @NonNull ByteArray getCredentialId()
@NonNull public @NonNull ByteArray getUserHandle()
UserIdentity.getId()
@NonNull public @NonNull ByteArray getPublicKeyCose()
public long getSignatureCount()
This is used to validate the signature counter
in authentication
assertions.
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object