io.fusionauth.domain.api.WebAuthnCredentialImportRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fusionauth-java-client Show documentation
Show all versions of fusionauth-java-client Show documentation
The Java Client library provides a native Java binding to the FusionAuth REST API.
/*
* Copyright (c) 2022, FusionAuth, All Rights Reserved
*/
package io.fusionauth.domain.api;
import java.util.List;
import io.fusionauth.domain.Buildable;
import io.fusionauth.domain.WebAuthnCredential;
/**
* API request to import an existing WebAuthn credential(s)
*
* @author Spencer Witt
*/
public class WebAuthnCredentialImportRequest implements Buildable {
/**
* The WebAuthn credential(s) to import. Required fields on credential:
*
* - userId
* - credentialId
* - publicKey
* - algorithm
*
* Other fields not specified will be populated with the same defaults as a credential registered through a WebAuthn ceremony.
*/
public List credentials;
/**
* If {@code true}, database constraints will be validated before import is attempted. Otherwise, database constraint violations will result in
* database exceptions
*/
public boolean validateDbConstraints;
}