Package com.oracle.bmc.auth
Class InstancePrincipalsAuthenticationDetailsProvider
- java.lang.Object
- 
- com.oracle.bmc.auth.AbstractRequestingAuthenticationDetailsProvider
- 
- com.oracle.bmc.auth.InstancePrincipalsAuthenticationDetailsProvider
 
 
- 
- All Implemented Interfaces:
- AbstractAuthenticationDetailsProvider,- BasicAuthenticationDetailsProvider,- ConfigurableRefreshOnNotAuthenticatedProvider<String>,- RefreshableOnNotAuthenticatedProvider<String>,- RegionProvider
 
 public class InstancePrincipalsAuthenticationDetailsProvider extends AbstractRequestingAuthenticationDetailsProvider implements RegionProvider, RefreshableOnNotAuthenticatedProvider<String>, ConfigurableRefreshOnNotAuthenticatedProvider<String> Implementation ofBasicAuthenticationDetailsProviderthat integrates with instance principal authentication endpoints to generate service tokens used for actual signing.Also uses AuthCachingPolicyto disable caching (as the values for signing requests may be rotated periodically).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classInstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilderBuilder for InstancePrincipalsAuthenticationDetailsProviderBuilder.- 
Nested classes/interfaces inherited from class com.oracle.bmc.auth.AbstractRequestingAuthenticationDetailsProviderAbstractRequestingAuthenticationDetailsProvider.Builder<B extends AbstractRequestingAuthenticationDetailsProvider.Builder<B>>, AbstractRequestingAuthenticationDetailsProvider.CachingSessionKeySupplier
 
- 
 - 
Field Summary- 
Fields inherited from class com.oracle.bmc.auth.AbstractRequestingAuthenticationDetailsProviderfederationClient, sessionKeySupplier
 
- 
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilderbuilder()Creates a new InstancePrincipalsAuthenticationDetailsProviderBuilder.RegiongetRegion()Returns the region.Stringrefresh()Refreshes the authentication data used by the providerStringrefreshIfExpiringWithin(Duration time)Refreshes the authentication data used by the provider if the token is expiring within the provided durationStringrefreshIfExpiringWithin(Duration time, boolean refreshKeys)Refreshes the authentication data used by the provider if the token is expiring within the provided duration and allows to enable/disable refresh of keysStringrefreshSecurityToken()Deprecated.userefresh()instead- 
Methods inherited from class com.oracle.bmc.auth.AbstractRequestingAuthenticationDetailsProvidergetKeyId, getPassPhrase, getPassphraseCharacters, getPrivateKey
 
- 
 
- 
- 
- 
Method Detail- 
builderpublic static InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilder builder() Creates a new InstancePrincipalsAuthenticationDetailsProviderBuilder.- Returns:
- A new builder instance.
 
 - 
refreshSecurityToken@Deprecated public String refreshSecurityToken() Deprecated.userefresh()insteadRefreshes the authentication data used by the provider- Returns:
- the refreshed authentication data
 
 - 
refreshpublic String refresh() Description copied from interface:RefreshableOnNotAuthenticatedProviderRefreshes the authentication data used by the provider- Specified by:
- refreshin interface- RefreshableOnNotAuthenticatedProvider<String>
- Returns:
- the refreshed authentication data
 
 - 
refreshIfExpiringWithinpublic String refreshIfExpiringWithin(Duration time) Description copied from interface:ConfigurableRefreshOnNotAuthenticatedProviderRefreshes the authentication data used by the provider if the token is expiring within the provided duration- Specified by:
- refreshIfExpiringWithinin interface- ConfigurableRefreshOnNotAuthenticatedProvider<String>
- Parameters:
- time- the duration to check
- Returns:
- the refreshed authentication data
 
 - 
refreshIfExpiringWithinpublic String refreshIfExpiringWithin(Duration time, boolean refreshKeys) Description copied from interface:ConfigurableRefreshOnNotAuthenticatedProviderRefreshes the authentication data used by the provider if the token is expiring within the provided duration and allows to enable/disable refresh of keys- Specified by:
- refreshIfExpiringWithinin interface- ConfigurableRefreshOnNotAuthenticatedProvider<String>
- Parameters:
- time- the duration to check
- refreshKeys- boolean value to enable/disable refresh of keys
- Returns:
- the refreshed authentication data
 
 - 
getRegionpublic Region getRegion() Description copied from interface:RegionProviderReturns the region.- Specified by:
- getRegionin interface- RegionProvider
- Returns:
- Region object.
 
 
- 
 
-