com.github.nagyesta.lowkeyvault.model.v7_3.certificate.X509CertificateModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lowkey-vault-app Show documentation
Show all versions of lowkey-vault-app Show documentation
Assembled application of Lowkey Vault.
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;
}