类 StsConfig
java.lang.Object
com.alibaba.nacos.client.auth.ram.identify.StsConfig
Sts config.
- 作者:
- Nacos
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private booleanWhether to cache.private static final Stringprivate Stringprivate StringSet the STS temporary certificate and no longer obtain it through the metadata interface.private StringMetadata interface for obtaining STS temporary credentials (including role name).private intThe STS temporary certificate will be refreshed when the validity period of the temporary certificate is left (allow the local time to be at most slower than the STS service time). -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StsConfigintbooleanbooleanisStsOn()voidsetCacheSecurityCredentials(boolean cacheSecurityCredentials) voidsetRamRoleName(String ramRoleName) voidsetSecurityCredentials(String securityCredentials) voidsetSecurityCredentialsUrl(String securityCredentialsUrl) voidsetTimeToRefreshInMillisecond(int timeToRefreshInMillisecond)
-
字段详细资料
-
RAM_SECURITY_CREDENTIALS_URL
- 另请参阅:
-
ramRoleName
-
timeToRefreshInMillisecond
private int timeToRefreshInMillisecondThe STS temporary certificate will be refreshed when the validity period of the temporary certificate is left (allow the local time to be at most slower than the STS service time). -
securityCredentialsUrl
Metadata interface for obtaining STS temporary credentials (including role name). -
securityCredentials
Set the STS temporary certificate and no longer obtain it through the metadata interface. -
cacheSecurityCredentials
private boolean cacheSecurityCredentialsWhether to cache.
-
-
构造器详细资料
-
StsConfig
private StsConfig()
-
-
方法详细资料
-
getInstance
-
getRamRoleName
-
setRamRoleName
-
getTimeToRefreshInMillisecond
public int getTimeToRefreshInMillisecond() -
setTimeToRefreshInMillisecond
public void setTimeToRefreshInMillisecond(int timeToRefreshInMillisecond) -
getSecurityCredentialsUrl
-
setSecurityCredentialsUrl
-
getSecurityCredentials
-
setSecurityCredentials
-
isStsOn
public boolean isStsOn() -
isCacheSecurityCredentials
public boolean isCacheSecurityCredentials() -
setCacheSecurityCredentials
public void setCacheSecurityCredentials(boolean cacheSecurityCredentials)
-