package com.iqser.red.service.persistence.management.v1.processor.entity.configuration;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Lob;
import jakarta.persistence.Table;

import com.iqser.red.service.persistence.service.v1.api.shared.model.utils.SuppressFBWarnings;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "digital_signature")
@SuppressFBWarnings("RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE")
public class DigitalSignatureEntity {

    public static final String ID = "CONFIG_ID";

    @Id
    private final String id = DigitalSignatureEntity.ID;

    @Column
    private String location;
    @Column
    private String reason;
    @Column
    private String contactInfo;
    @Column
    private String certificateName;
    @Column
    private String password;
    @Column
    @Lob
    private byte[] privateKey;

}
