Class AssertionRequest.AssertionRequestBuilder
- java.lang.Object
-
- com.yubico.webauthn.AssertionRequest.AssertionRequestBuilder
-
- Enclosing class:
- AssertionRequest
public static class AssertionRequest.AssertionRequestBuilder extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssertionRequest.AssertionRequestBuilder.MandatoryStages
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertionRequest
build()
AssertionRequest.AssertionRequestBuilder
publicKeyCredentialRequestOptions(@NonNull PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions)
An object that can be serialized to JSON and passed as thepublicKey
argument tonavigator.credentials.get()
.java.lang.String
toString()
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
userHandle(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.
-
-
-
Method Detail
-
username
public AssertionRequest.AssertionRequestBuilder username(@NonNull @NonNull java.util.Optional<java.lang.String> username)
The username of the user to authenticate, if the user has already been identified.This is mutually exclusive with
userHandle(ByteArray)
; setting this to non-empty will unsetuserHandle(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.
-
username
public AssertionRequest.AssertionRequestBuilder username(java.lang.String username)
The username of the user to authenticate, if the user has already been identified.This is mutually exclusive with
userHandle(ByteArray)
; setting this to non-null
will unsetuserHandle(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.
-
userHandle
public AssertionRequest.AssertionRequestBuilder userHandle(@NonNull @NonNull java.util.Optional<ByteArray> userHandle)
The user handle of the user to authenticate, if the user has already been identified.This is mutually exclusive with
username(String)
; setting this to non-empty will unsetusername(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.
-
userHandle
public AssertionRequest.AssertionRequestBuilder userHandle(ByteArray userHandle)
The user handle of the user to authenticate, if the user has already been identified.This is mutually exclusive with
username(String)
; setting this to non-null
will unsetusername(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.
-
publicKeyCredentialRequestOptions
public AssertionRequest.AssertionRequestBuilder publicKeyCredentialRequestOptions(@NonNull @NonNull PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions)
An object that can be serialized to JSON and passed as thepublicKey
argument tonavigator.credentials.get()
.- Returns:
this
.
-
build
public AssertionRequest build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-