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

com.wultra.security.powerauth.client.model.request.OperationTemplateCreateRequest Maven / Gradle / Ivy

The newest version!
/*
 * PowerAuth Server and related software components
 * Copyright (C) 2021 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.client.model.request;

import com.fasterxml.jackson.annotation.JsonSetter;
import com.fasterxml.jackson.annotation.Nulls;
import com.wultra.security.powerauth.client.model.enumeration.SignatureType;
import lombok.Data;

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

/**
 * Request to create a new operation template.
 *
 * @author Petr Dvorak, [email protected]
 */
@Data
public class OperationTemplateCreateRequest {

    /**
     * The name of the operation template.
     */
    private String templateName;

    /**
     * The type of the operation that is created based on the template.
     */
    private String operationType;

    /**
     * Template for the operation data.
     */
    private String dataTemplate;

    /**
     * Allowed signature types.
     */
    @JsonSetter(nulls = Nulls.SKIP)
    private final List signatureType = new ArrayList<>();

    /**
     * How many failed attempts should be allowed for th operation.
     */
    private Long maxFailureCount;

    /**
     * Operation expiration period in seconds.
     */
    private Long expiration;

    /**
     * Risk flags for offline QR code. Uppercase letters without separator, e.g. {@code XFC}.
     */
    private String riskFlags;

    /**
     * Whether proximity check is enabled and TOTP seed should be generated
     */
    private boolean proximityCheckEnabled;

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy