public final class UserIdentity extends java.lang.Object implements PublicKeyCredentialEntity
| Modifier and Type | Class and Description |
|---|---|
static class |
UserIdentity.UserIdentityBuilder |
| Modifier and Type | Method and Description |
|---|---|
static UserIdentity.UserIdentityBuilder.MandatoryStages |
builder() |
boolean |
equals(java.lang.Object o) |
@NonNull java.lang.String |
getDisplayName()
A human-palatable name for the user account, intended only for display.
|
@NonNull ByteArray |
getId()
The user handle
for the account, specified by the Relying Party.
|
@NonNull java.lang.String |
getName()
A human-palatable identifier for a user account.
|
int |
hashCode() |
UserIdentity.UserIdentityBuilder |
toBuilder() |
java.lang.String |
toString() |
public static UserIdentity.UserIdentityBuilder.MandatoryStages builder()
public UserIdentity.UserIdentityBuilder toBuilder()
@NonNull public @NonNull java.lang.String getDisplayName()
displayName's value, or displaying the value to the user.
displayName's value
prior to displaying the value to the user or including the value as a parameter of the
authenticatorMakeCredential operation.
When clients, client platforms, or authenticators display a displayName's value,
they should always use UI elements to provide a clear boundary around the displayed value, and
not allow overflow into other elements.
Authenticators MUST accept and store a 64-byte minimum length for a displayName
member's value. Authenticators MAY truncate a displayName member's value to a length
equal to or greater than 64 bytes.
@NonNull public @NonNull ByteArray getId()
A user handle is an opaque byte sequence with a maximum size of 64 bytes. User handles are not meant to be displayed to users. The user handle SHOULD NOT contain personally identifying information about the user, such as a username or e-mail address; see §14.9 User Handle Contents for details.
To ensure secure operation, authentication and authorization decisions MUST be made on the
basis of this id member, not the displayName nor name members. See
Section 6.1 of RFC 8266.
An authenticator will never contain more than one credential for a given Relying Party under the same user handle.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object@NonNull public @NonNull java.lang.String getName()
displayNames.
For example: "alexm", "alex.p.mueller@example.com" or "+14255551234".
getName in interface PublicKeyCredentialEntity