public static class AssertionRequest.AssertionRequestBuilder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AssertionRequest.AssertionRequestBuilder.MandatoryStages |
| Modifier and Type | Method and Description |
|---|---|
AssertionRequest |
build() |
AssertionRequest.AssertionRequestBuilder |
publicKeyCredentialRequestOptions(@NonNull PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions)
An object that can be serialized to JSON and passed as the
publicKey argument to
navigator.credentials.get(). |
java.lang.String |
toString() |
AssertionRequest.AssertionRequestBuilder |
userHandle(ByteArray userHandle)
The user handle of the user to authenticate, if the user has already been identified.
|
AssertionRequest.AssertionRequestBuilder |
userHandle(@NonNull java.util.Optional<ByteArray> userHandle)
The user handle of the user to authenticate, if the user has already been identified.
|
AssertionRequest.AssertionRequestBuilder |
username(@NonNull java.util.Optional<java.lang.String> username)
The username of the user to authenticate, if the user has already been identified.
|
AssertionRequest.AssertionRequestBuilder |
username(java.lang.String username)
The username of the user to authenticate, if the user has already been identified.
|
public AssertionRequest.AssertionRequestBuilder username(@NonNull @NonNull java.util.Optional<java.lang.String> username)
This is mutually exclusive with userHandle(ByteArray); setting this to non-empty
will unset userHandle(ByteArray).
If this is empty, this indicates that this is a request for an assertion by a client-side-discoverable credential, and identification of the user has been deferred until the response is received.
public AssertionRequest.AssertionRequestBuilder username(java.lang.String username)
This is mutually exclusive with userHandle(ByteArray); setting this to non-
null will unset userHandle(ByteArray).
If this is empty, this indicates that this is a request for an assertion by a client-side-discoverable credential, and identification of the user has been deferred until the response is received.
public AssertionRequest.AssertionRequestBuilder userHandle(@NonNull @NonNull java.util.Optional<ByteArray> userHandle)
This is mutually exclusive with username(String); setting this to non-empty will
unset username(String).
If both this and username(String) are empty, this indicates that this is a
request for an assertion by a client-side-discoverable
credential, and identification of the user has been deferred until the response is
received.
public AssertionRequest.AssertionRequestBuilder userHandle(ByteArray userHandle)
This is mutually exclusive with username(String); setting this to non-null
will unset username(String).
If both this and username(String) are empty, this indicates that this is a
request for an assertion by a client-side-discoverable
credential, and identification of the user has been deferred until the response is
received.
public AssertionRequest.AssertionRequestBuilder publicKeyCredentialRequestOptions(@NonNull @NonNull PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions)
publicKey argument to
navigator.credentials.get().this.public AssertionRequest build()
public java.lang.String toString()
toString in class java.lang.Object