Package com.yubico.webauthn
Class AssertionRequest
- java.lang.Object
-
- com.yubico.webauthn.AssertionRequest
-
public final class AssertionRequest extends java.lang.Object
A combination of aPublicKeyCredentialRequestOptions
and, optionally, ausername
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AssertionRequest.AssertionRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AssertionRequest.AssertionRequestBuilder.MandatoryStages
builder()
boolean
equals(java.lang.Object o)
@NonNull PublicKeyCredentialRequestOptions
getPublicKeyCredentialRequestOptions()
An object that can be serialized to JSON and passed as thepublicKey
argument tonavigator.credentials.get()
.java.util.Optional<java.lang.String>
getUsername()
The username of the user to authenticate, if the user has already been identified.int
hashCode()
AssertionRequest.AssertionRequestBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
getUsername
public java.util.Optional<java.lang.String> getUsername()
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.
-
builder
public static AssertionRequest.AssertionRequestBuilder.MandatoryStages builder()
-
toBuilder
public AssertionRequest.AssertionRequestBuilder toBuilder()
-
getPublicKeyCredentialRequestOptions
@NonNull public @NonNull PublicKeyCredentialRequestOptions getPublicKeyCredentialRequestOptions()
An object that can be serialized to JSON and passed as thepublicKey
argument tonavigator.credentials.get()
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-