mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-30 06:37:42 +00:00
36 lines
749 B
Java
36 lines
749 B
Java
package net.lamgc.oracle.sentry;
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.lang.NonNull;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
/**
|
|
* @author LamGC
|
|
*/
|
|
@Component("sentry.constants")
|
|
public final class Constants {
|
|
|
|
/**
|
|
* 本类唯一实例, 请不要进行设置.
|
|
*/
|
|
public static Constants instance;
|
|
|
|
private Constants() {
|
|
instance = this;
|
|
}
|
|
|
|
@Value("${oracle.ssh.firstConnection.authenticationPolicy}")
|
|
@NonNull
|
|
private String firstConnectionPolicy;
|
|
|
|
|
|
/**
|
|
* 获取 SSH 首次连接策略.
|
|
* @return 返回策略值.
|
|
*/
|
|
@NonNull
|
|
public String getFirstConnectionPolicy() {
|
|
return firstConnectionPolicy;
|
|
}
|
|
}
|