mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-30 06:37:42 +00:00
refactor: 调整构造方法访问权.
最小化开放权限.
This commit is contained in:
parent
bf29faa9a5
commit
be905b2976
@ -19,7 +19,7 @@ public final class CommandExecSession implements Closeable {
|
|||||||
|
|
||||||
private final ChannelExec channelExec;
|
private final ChannelExec channelExec;
|
||||||
|
|
||||||
public CommandExecSession(ChannelExec channelExec) {
|
CommandExecSession(ChannelExec channelExec) {
|
||||||
this.channelExec = channelExec;
|
this.channelExec = channelExec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ public class OracleInstanceServerKeyVerifier implements ServerKeyVerifier {
|
|||||||
private final ComputeInstance instance;
|
private final ComputeInstance instance;
|
||||||
private final SshAuthInfo info;
|
private final SshAuthInfo info;
|
||||||
|
|
||||||
public OracleInstanceServerKeyVerifier(ComputeInstance instance, SshAuthInfo info) {
|
OracleInstanceServerKeyVerifier(ComputeInstance instance, SshAuthInfo info) {
|
||||||
this.instance = instance;
|
this.instance = instance;
|
||||||
this.info = info;
|
this.info = info;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user