Enhance security and reliability across SFTP workflows
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.sftp.manager.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
import javax.persistence.*;
|
||||
import java.time.LocalDateTime;
|
||||
@@ -24,10 +25,12 @@ public class Connection {
|
||||
private String username; // 用户名
|
||||
|
||||
@Column(columnDefinition = "TEXT")
|
||||
@JsonIgnore
|
||||
private String password; // 密码(加密存储)
|
||||
|
||||
private String privateKeyPath; // 私钥路径(可选)
|
||||
|
||||
@JsonIgnore
|
||||
private String passPhrase; // 私钥密码(可选)
|
||||
|
||||
private Integer connectTimeout; // 连接超时时间
|
||||
|
||||
Reference in New Issue
Block a user