Package com.yubico.webauthn
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
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.If this is absent, this indicates that this is a request for an assertion by a client-side-resident 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.If this is absent, this indicates that this is a request for an assertion by a client-side-resident 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()
.
-
build
public AssertionRequest build()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-