-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aa7fcc1
commit 204c594
Showing
4 changed files
with
84 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
cachecloud-web/src/main/java/com/sohu/cache/ssh/SSHMachineInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.sohu.cache.ssh; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.Objects; | ||
|
||
/** | ||
* @Author: zengyizhao | ||
* @CreateTime: 2024/4/3 12:38 | ||
* @Description: ssh session key | ||
* @Version: 1.0 | ||
*/ | ||
@Data | ||
@Builder | ||
public class SSHMachineInfo { | ||
|
||
/** | ||
* ip | ||
*/ | ||
private String ip; | ||
|
||
/** | ||
* 用户名 | ||
*/ | ||
private String username; | ||
|
||
/** | ||
* 登录方式 | ||
*/ | ||
private int authType; | ||
|
||
/** | ||
* 密码 | ||
*/ | ||
private String password; | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
SSHMachineInfo that = (SSHMachineInfo) o; | ||
return authType == that.authType && Objects.equals(ip, that.ip) && Objects.equals(password, that.password) && Objects.equals(username, that.username); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(ip, username, authType, password); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters