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

com.github.nagyesta.lowkeyvault.model.v7_3.certificate.X509CertificateModel Maven / Gradle / Ivy

package com.github.nagyesta.lowkeyvault.model.v7_3.certificate;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.nagyesta.lowkeyvault.service.certificate.impl.KeyUsageEnum;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Set;

@Data
public class X509CertificateModel {

    @NotNull
    @NotBlank
    @JsonProperty("subject")
    private String subject;

    @JsonProperty("ekus")
    private Set extendedKeyUsage;

    @JsonProperty("key_usage")
    private Set keyUsage;

    @JsonProperty("validity_months")
    private Integer validityMonths;

    @JsonProperty("sans")
    @Valid
    private SubjectAlternativeNames subjectAlternativeNames;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy