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

com.wultra.security.powerauth.fido2.model.request.AssertionVerificationRequest Maven / Gradle / Ivy

The newest version!
/*
 * PowerAuth Server and related software components
 * Copyright (C) 2023 Wultra s.r.o.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see .
 */

package com.wultra.security.powerauth.fido2.model.request;

import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import com.wultra.security.powerauth.fido2.model.entity.AuthenticatorAssertionResponse;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * Request for validating an assertion.
 *
 * @author Roman Strobl, [email protected]
 */
@Data
public class AssertionVerificationRequest {

    @NotBlank
    private String credentialId;
    @NotBlank
    private String type;
    private String authenticatorAttachment;
    @NotNull
    private AuthenticatorAssertionResponse response = new AuthenticatorAssertionResponse();
    @NotBlank
    private String applicationId;
    @NotBlank
    private String relyingPartyId;
    @JsonSetter(nulls = Nulls.SKIP)
    private List allowedOrigins = new ArrayList<>();
    @JsonSetter(nulls = Nulls.SKIP)
    private List allowedTopOrigins = new ArrayList<>();
    private boolean requiresUserVerification;
    private String expectedChallenge;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy