package cn.reghao.autodop.dmaster.machine.model.po;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Lob;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

/**
 * @author reghao
 * @date 2021-07-07 17:30:12
 */
@Data
@Embeddable
public class SshAuth {
    @Positive(message = "SSH 端口必须有效")
    private Integer port;
    @NotBlank(message = "用户名为空白字符串")
    private String username;
    private String password;
    @Lob
    @Column(columnDefinition="text")
    private String rsaPrikey;
}
