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 classAssertionRequest.AssertionRequestBuilder.MandatoryStages 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertionRequestbuild()AssertionRequest.AssertionRequestBuilderpublicKeyCredentialRequestOptions(@NonNull PublicKeyCredentialRequestOptions publicKeyCredentialRequestOptions)An object that can be serialized to JSON and passed as thepublicKeyargument tonavigator.credentials.get().java.lang.StringtoString()AssertionRequest.AssertionRequestBuilderuserHandle(@NonNull java.util.Optional<ByteArray> userHandle)The user handle of the user to authenticate, if the user has already been identified.AssertionRequest.AssertionRequestBuilderuserHandle(ByteArray userHandle)The user handle of the user to authenticate, if the user has already been identified.AssertionRequest.AssertionRequestBuilderusername(@NonNull java.util.Optional<java.lang.String> username)The username of the user to authenticate, if the user has already been identified.AssertionRequest.AssertionRequestBuilderusername(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-nullwill 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-nullwill 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 thepublicKeyargument tonavigator.credentials.get().- Returns:
 this.
 
- 
build
public AssertionRequest build()
 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
 - 
 
 -