public static class UserIdentity.UserIdentityBuilder
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UserIdentity.UserIdentityBuilder.MandatoryStages |
Modifier and Type | Method and Description |
---|---|
UserIdentity |
build() |
UserIdentity.UserIdentityBuilder |
displayName(@NonNull java.lang.String displayName)
A human-palatable name for the user account, intended only for display.
|
UserIdentity.UserIdentityBuilder |
icon(@NonNull java.util.Optional<java.net.URL> icon)
A URL which resolves to an image associated with the entity.
|
UserIdentity.UserIdentityBuilder |
icon(@NonNull java.net.URL icon)
A URL which resolves to an image associated with the entity.
|
UserIdentity.UserIdentityBuilder |
id(@NonNull ByteArray id)
The user handle for the account,
specified by the Relying Party.
|
UserIdentity.UserIdentityBuilder |
name(@NonNull java.lang.String name)
A human-palatable identifier for a user account.
|
java.lang.String |
toString() |
public UserIdentity.UserIdentityBuilder icon(@NonNull @NonNull java.util.Optional<java.net.URL> icon)
This URL MUST be an a priori authenticated URL. Authenticators MUST accept and store a 128-byte minimum length for an icon member’s value. Authenticators MAY ignore an icon member’s value if its length is greater than 128 bytes. The URL’s scheme MAY be "data" to avoid fetches of the URL, at the cost of needing more storage.
public UserIdentity.UserIdentityBuilder icon(@NonNull @NonNull java.net.URL icon)
This URL MUST be an a priori authenticated URL. Authenticators MUST accept and store a 128-byte minimum length for an icon member’s value. Authenticators MAY ignore an icon member’s value if its length is greater than 128 bytes. The URL’s scheme MAY be "data" to avoid fetches of the URL, at the cost of needing more storage.
public UserIdentity.UserIdentityBuilder name(@NonNull @NonNull java.lang.String name)
displayName
s.
For example: "alexm", "alex.p.mueller@example.com" or "+14255551234".
public UserIdentity.UserIdentityBuilder displayName(@NonNull @NonNull java.lang.String displayName)
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.
public UserIdentity.UserIdentityBuilder id(@NonNull @NonNull ByteArray id)
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 UserIdentity build()
public java.lang.String toString()
toString
in class java.lang.Object