类 StsConfig
- java.lang.Object
-
- com.alibaba.nacos.client.auth.ram.identify.StsConfig
-
public class StsConfig extends java.lang.ObjectSts config.- 作者:
- Nacos
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 private static classStsConfig.Singleton
-
字段概要
字段 修饰符和类型 字段 说明 private booleancacheSecurityCredentialsWhether to cache.private static java.lang.StringRAM_SECURITY_CREDENTIALS_URLprivate java.lang.StringramRoleNameprivate java.lang.StringsecurityCredentialsSet the STS temporary certificate and no longer obtain it through the metadata interface.private java.lang.StringsecurityCredentialsUrlMetadata interface for obtaining STS temporary credentials (including role name).private inttimeToRefreshInMillisecondThe 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).
-
构造器概要
构造器 限定符 构造器 说明 privateStsConfig()
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static StsConfiggetInstance()java.lang.StringgetRamRoleName()java.lang.StringgetSecurityCredentials()java.lang.StringgetSecurityCredentialsUrl()intgetTimeToRefreshInMillisecond()booleanisCacheSecurityCredentials()booleanisStsOn()voidsetCacheSecurityCredentials(boolean cacheSecurityCredentials)voidsetRamRoleName(java.lang.String ramRoleName)voidsetSecurityCredentials(java.lang.String securityCredentials)voidsetSecurityCredentialsUrl(java.lang.String securityCredentialsUrl)voidsetTimeToRefreshInMillisecond(int timeToRefreshInMillisecond)
-
-
-
字段详细资料
-
RAM_SECURITY_CREDENTIALS_URL
private static final java.lang.String RAM_SECURITY_CREDENTIALS_URL
- 另请参阅:
- 常量字段值
-
ramRoleName
private java.lang.String ramRoleName
-
timeToRefreshInMillisecond
private int timeToRefreshInMillisecond
The 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
private java.lang.String securityCredentialsUrl
Metadata interface for obtaining STS temporary credentials (including role name).
-
securityCredentials
private java.lang.String securityCredentials
Set the STS temporary certificate and no longer obtain it through the metadata interface.
-
cacheSecurityCredentials
private boolean cacheSecurityCredentials
Whether to cache.
-
-
方法详细资料
-
getInstance
public static StsConfig getInstance()
-
getRamRoleName
public java.lang.String getRamRoleName()
-
setRamRoleName
public void setRamRoleName(java.lang.String ramRoleName)
-
getTimeToRefreshInMillisecond
public int getTimeToRefreshInMillisecond()
-
setTimeToRefreshInMillisecond
public void setTimeToRefreshInMillisecond(int timeToRefreshInMillisecond)
-
getSecurityCredentialsUrl
public java.lang.String getSecurityCredentialsUrl()
-
setSecurityCredentialsUrl
public void setSecurityCredentialsUrl(java.lang.String securityCredentialsUrl)
-
getSecurityCredentials
public java.lang.String getSecurityCredentials()
-
setSecurityCredentials
public void setSecurityCredentials(java.lang.String securityCredentials)
-
isStsOn
public boolean isStsOn()
-
isCacheSecurityCredentials
public boolean isCacheSecurityCredentials()
-
setCacheSecurityCredentials
public void setCacheSecurityCredentials(boolean cacheSecurityCredentials)
-
-