public class InstancePrincipalsAuthenticationDetailsProvider extends AbstractRequestingAuthenticationDetailsProvider implements RegionProvider, RefreshableOnNotAuthenticatedProvider<String>, ConfigurableRefreshOnNotAuthenticatedProvider<String>
Implementation of BasicAuthenticationDetailsProvider that integrates
with instance principal authentication endpoints to generate service tokens
used for actual signing.
Also uses AuthCachingPolicy to disable caching (as the values for signing requests
may be rotated periodically).
| Modifier and Type | Class and Description |
|---|---|
static class |
InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilder
Builder for InstancePrincipalsAuthenticationDetailsProviderBuilder.
|
AbstractRequestingAuthenticationDetailsProvider.Builder<B extends AbstractRequestingAuthenticationDetailsProvider.Builder<B>>, AbstractRequestingAuthenticationDetailsProvider.CachingSessionKeySupplierfederationClient, sessionKeySupplier| Modifier and Type | Method and Description |
|---|---|
static InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilder |
builder()
Creates a new InstancePrincipalsAuthenticationDetailsProviderBuilder.
|
Region |
getRegion()
Returns the region.
|
String |
refresh()
Refreshes the authentication data used by the provider
|
String |
refreshIfExpiringWithin(Duration time)
Refreshes the authentication data used by the provider
|
String |
refreshSecurityToken()
Deprecated.
use
refresh() instead |
getKeyId, getPassPhrase, getPassphraseCharacters, getPrivateKeypublic static InstancePrincipalsAuthenticationDetailsProvider.InstancePrincipalsAuthenticationDetailsProviderBuilder builder()
Creates a new InstancePrincipalsAuthenticationDetailsProviderBuilder.
@Deprecated public String refreshSecurityToken()
refresh() insteadRefreshes the authentication data used by the provider
public String refresh()
RefreshableOnNotAuthenticatedProviderRefreshes the authentication data used by the provider
refresh in interface RefreshableOnNotAuthenticatedProvider<String>public String refreshIfExpiringWithin(Duration time)
ConfigurableRefreshOnNotAuthenticatedProviderRefreshes the authentication data used by the provider
refreshIfExpiringWithin in interface ConfigurableRefreshOnNotAuthenticatedProvider<String>public Region getRegion()
RegionProviderReturns the region.
getRegion in interface RegionProviderCopyright © 2016–2022. All rights reserved.