Package com.yubico.webauthn.data
Class PublicKeyCredentialRequestOptions
java.lang.Object
com.yubico.webauthn.data.PublicKeyCredentialRequestOptions
The PublicKeyCredentialRequestOptions dictionary supplies get() with the data it needs to
 generate an assertion.
 
Its `challenge` member must be present, while its other members are optional.
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic class
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()boolean@NonNull ByteArrayA challenge that the selected authenticator signs, along with other data, when producing an authentication assertion.@NonNull AssertionExtensionInputsAdditional parameters requesting additional processing by the client and authenticator.getRpId()Specifies the relying party identifier claimed by the caller.inthashCode()Serialize thisPublicKeyCredentialRequestOptionsvalue to JSON suitable for sending to the client.toString()
- 
Method Details- 
getTimeout
- 
getAllowCredentials
- 
getUserVerification
- 
toCredentialsGetJsonSerialize thisPublicKeyCredentialRequestOptionsvalue to JSON suitable for sending to the client.Any ByteArrayvalues in this data structure will beBase64Urlencoded. Those values MUST be decoded intoBufferSourcevalues (such asUint8Array) on the client side before callingnavigator.credentials.get().After decoding binary values, the resulting JavaScript object is suitable for passing as an argument to navigator.credentials.get().- Returns:
- a JSON value suitable for sending to the client and passing as an argument to navigator.credentials.get(), after decoding binary options from Base64Url strings.
- Throws:
- com.fasterxml.jackson.core.JsonProcessingException- if JSON serialization fails.
 
- 
builderpublic static PublicKeyCredentialRequestOptions.PublicKeyCredentialRequestOptionsBuilder.MandatoryStages builder()
- 
toBuilder
- 
getChallengeA challenge that the selected authenticator signs, along with other data, when producing an authentication assertion. See the §13.1 Cryptographic Challenges security consideration.
- 
getRpIdSpecifies the relying party identifier claimed by the caller.If omitted, its value will be set by the client. 
- 
getExtensionsAdditional parameters requesting additional processing by the client and authenticator.For example, if transaction confirmation is sought from the user, then the prompt string might be included as an extension. 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-