package com.aip.gateway.api.dto;

import io.swagger.annotations.ApiModel;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.concurrent.ConcurrentHashMap;

@ApiModel("LinkedDecryptKeyDto(연계 시스템 복호화 키 정보")
@Data
@Builder
@ToString(exclude = "serverMap")
public class LinkedDecryptKeyDto implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    private int decryptKeyId;
    private String decryptKey;
    private LocalDateTime expiredAt;
    private int serverId;
    private String serverIpAddr;
    private String serverDesc;
    private int systemId;
    private String systemName;

    private ConcurrentHashMap<String, LinkedDecryptKeyDto> serverMap;

}
