All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.fusionauth.domain.webauthn.PublicKeyCredentialRequestOptions Maven / Gradle / Ivy

There is a newer version: 1.53.0
Show newest version
/*
 * Copyright (c) 2022, FusionAuth, All Rights Reserved
 */
package io.fusionauth.domain.webauthn;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.fusionauth.domain.Buildable;

/**
 * Provides the authenticator with the data it needs to generate an assertion.
 *
 * @author Spencer Witt
 */
public class PublicKeyCredentialRequestOptions implements Buildable {
  /**
   * List of credentials acceptable to the caller in order from most- to least-preferred
   */
  public List allowCredentials;

  /**
   * The challenge the authenticator must sign to produce an authentication assertion in base64URL-encoded format
   */
  public String challenge;

  /**
   * A unique identifier for the Relying Party. Defaults to the calling host's effective domain
   */
  @JsonProperty("rpId")
  public String relyingPartyId;

  /**
   * The time the caller is willing to wait for the operation to complete in milliseconds. This value is treated as a hint and may be overridden by
   * the client
   */
  public long timeout;

  /**
   * Specifies the Relying Party's requirements for user verification. Authenticators default this to
   * {@link UserVerificationRequirement#preferred}.
   */
  public UserVerificationRequirement userVerification;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy