public final class PublicKeyCredentialRequestOptions
extends java.lang.Object
Its `challenge` member must be present, while its other members are optional.
| Modifier and Type | Class and Description |
|---|---|
static class |
PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder |
| Modifier and Type | Method and Description |
|---|---|
static PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder.MandatoryStages |
builder() |
boolean |
equals(java.lang.Object o) |
java.util.Optional<java.util.List<PublicKeyCredentialDescriptor>> |
getAllowCredentials() |
@NonNull ByteArray |
getChallenge()
A challenge that the selected authenticator signs, along with other data, when producing an
authentication assertion.
|
@NonNull AssertionExtensionInputs |
getExtensions()
Additional parameters requesting additional processing by the client and authenticator.
|
java.lang.String |
getRpId()
Specifies the relying party identifier claimed by the caller.
|
java.util.Optional<java.lang.Long> |
getTimeout() |
java.util.Optional<UserVerificationRequirement> |
getUserVerification() |
int |
hashCode() |
PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder |
toBuilder() |
java.lang.String |
toCredentialsGetJson()
Serialize this
PublicKeyCredentialRequestOptions value to JSON suitable for sending to
the client. |
java.lang.String |
toString() |
public java.util.Optional<java.lang.Long> getTimeout()
public java.util.Optional<java.util.List<PublicKeyCredentialDescriptor>> getAllowCredentials()
public java.util.Optional<UserVerificationRequirement> getUserVerification()
public java.lang.String toCredentialsGetJson()
throws com.fasterxml.jackson.core.JsonProcessingException
PublicKeyCredentialRequestOptions value to JSON suitable for sending to
the client.
Any ByteArray values in this data structure will be Base64Url encoded. Those values MUST be decoded into BufferSource values (such as
Uint8Array) on the client side before calling navigator.credentials.get()
.
After decoding binary values, the resulting JavaScript object is suitable for passing as an
argument to navigator.credentials.get().
navigator.credentials.get(), after decoding binary options from Base64Url strings.com.fasterxml.jackson.core.JsonProcessingException - if JSON serialization fails.public static PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder.MandatoryStages builder()
public PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder toBuilder()
@NonNull public @NonNull ByteArray getChallenge()
public java.lang.String getRpId()
If omitted, its value will be set by the client.
@NonNull public @NonNull AssertionExtensionInputs getExtensions()
For example, if transaction confirmation is sought from the user, then the prompt string might be included as an extension.
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object