Package com.oracle.bmc.auth
Interface ProvidesConfigurableRefresh
- 
- All Known Implementing Classes:
- AbstractFederationClient,- FileBasedResourcePrincipalFederationClient,- FixedContentResourcePrincipalFederationClient,- ResourcePrincipalsFederationClient,- ResourcePrincipalsV3FederationClient,- ResourcePrincipalV2FederationClient,- X509FederationClient
 
 public interface ProvidesConfigurableRefreshAn interface that has the API to return refresh security token after if the token expires within a configurable time
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description StringrefreshAndGetSecurityTokenIfExpiringWithin(Duration time)Gets a security token from the federation endpoint if the security token expires within the provided duration.StringrefreshAndGetSecurityTokenIfExpiringWithin(Duration time, boolean refreshKeys)Gets a security token from the federation endpoint if the security token expires within the provided duration and allows to enable/disable refresh of keys.
 
- 
- 
- 
Method Detail- 
refreshAndGetSecurityTokenIfExpiringWithinString refreshAndGetSecurityTokenIfExpiringWithin(Duration time) Gets a security token from the federation endpoint if the security token expires within the provided duration.This will always retrieve a new token from the federation endpoint and does not use a cached token. - Parameters:
- time- the duration to check
- Returns:
- A security token that can be used to authenticate requests.
 
 - 
refreshAndGetSecurityTokenIfExpiringWithinString refreshAndGetSecurityTokenIfExpiringWithin(Duration time, boolean refreshKeys) Gets a security token from the federation endpoint if the security token expires within the provided duration and allows to enable/disable refresh of keys.This will always retrieve a new token from the federation endpoint and does not use a cached token. - Parameters:
- time- the duration to check
- refreshKeys- boolean value to enable/disable refresh of keys
- Returns:
- A security token that can be used to authenticate requests.
 
 
- 
 
-