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

com.contrastsecurity.http.SecurityCheckForm Maven / Gradle / Ivy

There is a newer version: 3.4.2
Show newest version
package com.contrastsecurity.http;

import com.contrastsecurity.models.AgentType;
import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

/**
 * Form that is used making security checks
 */
@Getter
@Setter
@AllArgsConstructor
public class SecurityCheckForm {

    /**
     * The ID of the application to be verified
     * @param applicationId New value for application id.
     * @return The ID of the application
     */
    @SerializedName("application_id")
    private String applicationId;

    /**
     * The name of the application to be verified
     * @param applicationName New value for application name.
     * @return The name of the application.
     */
    @SerializedName("application_name")
    private String applicationName;

    /**
     * The language of the agent used to instrument the application
     * @param agentLanguage New value for agent language.
     * @return the agent language of the application
     */
    @SerializedName("agent_language")
    private AgentType agentLanguage;

    /**
     * Where the request is being made
     * Default: OTHER
     * @param origin New origin for the security check
     * @returnThe origin of the security check
     */
    @SerializedName("origin")
    private String origin = "OTHER";

    /**
     * The job start time of the jenkins job
     * Some job outcome policy configurations may not work as expected if not set
     * @param jobStartTime New value for job start time.
     * @return the start time of the jenkins job
     */
    @SerializedName("job_start_time")
    private Long jobStartTime;

    /**
     * Filter to be applied to the vulnerabilities if the jop opt in
     * @param securityCheckFilter the security check filter.
     * @return the security check filter
     */
    @SerializedName("security_check_filter")
    private SecurityCheckFilter securityCheckFilter;

    public SecurityCheckForm(String applicationId) {
        this.applicationId = applicationId;
    }

    public SecurityCheckForm(String applicationName, AgentType agentLanguage) {
        this.applicationName = applicationName;
        this.agentLanguage = agentLanguage;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy