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 |
|---|---|
| public static class | InstancePrincipalsAuthenticationDetailsProvider.
Builder for InstancePrincipalsAuthenticationDetailsProviderBuilder. |
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private final Region |
| Access | Constructor and Description |
|---|---|
| private | InstancePrincipalsAuthenticationDetailsProvider(FederationClient federationClient, SessionKeySupplier sessionKeySupplier, Region region)
|
| Modifier and Type | Method and Description |
|---|---|
| public static InstancePrincipalsAuthenticationDetailsProvider. | Returns: A new builder instance.Creates a new InstancePrincipalsAuthenticationDetailsProviderBuilder. |
| public Region | |
| public String | refresh()
Implements com. Refreshes the authentication data used by the provider |
| public String | refreshIfExpiringWithin(Duration
the duration to check time)Implements com. Refreshes the authentication data used by the provider if the token is expiring within the provided duration |
| public String | refreshIfExpiringWithin(Duration
the duration to check time, boolean boolean value to enable/disable refresh of keys refreshKeys)Implements com. Refreshes the authentication data used by the provider if the token is expiring within the provided duration and allows to enable/disable refresh of keys |
| public String | Returns: the refreshed authentication data
Deprecated
use
refresh() instead
Refreshes the authentication data used by the provider |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| region | back to summary |
|---|---|
| private final Region region | |
| InstancePrincipalsAuthenticationDetailsProvider | back to summary |
|---|---|
| private InstancePrincipalsAuthenticationDetailsProvider(FederationClient federationClient, SessionKeySupplier sessionKeySupplier, Region region) | |
| builder | back to summary |
|---|---|
| public static InstancePrincipalsAuthenticationDetailsProvider. Creates a new InstancePrincipalsAuthenticationDetailsProviderBuilder.
| |
| getRegion | back to summary |
|---|---|
| public Region getRegion() Implements com. Doc from com. Returns the region. | |
| refresh | back to summary |
|---|---|
| public String refresh() Implements com. Doc from com. Refreshes the authentication data used by the provider | |
| refreshIfExpiringWithin | back to summary |
|---|---|
| public String refreshIfExpiringWithin(Duration time) Implements com. Doc from com. Refreshes the authentication data used by the provider if the token is expiring within the provided duration | |
| refreshIfExpiringWithin | back to summary |
|---|---|
| public String refreshIfExpiringWithin(Duration time, boolean refreshKeys) Implements com. Doc from com. Refreshes the authentication data used by the provider if the token is expiring within the provided duration and allows to enable/disable refresh of keys | |
| refreshSecurityToken | back to summary |
|---|---|
| public String refreshSecurityToken()
Deprecated use Refreshes the authentication data used by the provider
| |
| Access | Constructor and Description |
|---|---|
| public |
| InstancePrincipalsAuthenticationDetailsProviderBuilder | back to summary |
|---|---|
| public InstancePrincipalsAuthenticationDetailsProviderBuilder() | |
| build | back to summary |
|---|---|
| public InstancePrincipalsAuthenticationDetailsProvider build() Overrides com. Doc from com. Build a new AuthenticationDetailsProvider that uses the FederationClient.
| |
| buildProvider | back to summary |
|---|---|
| protected InstancePrincipalsAuthenticationDetailsProvider buildProvider(SessionKeySupplier sessionKeySupplierToUse) Implements abstract com. Doc from com. Build the actual provider.
| |
| detectEndpointRetries | back to summary |
|---|---|
| public InstancePrincipalsAuthenticationDetailsProvider. Configures the custom retries to use for detecting endpoint.
| |
| federationEndpoint | back to summary |
|---|---|
| public InstancePrincipalsAuthenticationDetailsProvider. Overrides com. Doc from com. Configures the custom federationEndpoint to use.
| |
| leafCertificateSupplier | back to summary |
|---|---|
| public InstancePrincipalsAuthenticationDetailsProvider. Configures the custom leafCertificateSupplier to use.
| |
| timeoutForEachRetry | back to summary |
|---|---|
| public InstancePrincipalsAuthenticationDetailsProvider. Overrides com. Doc from com. Configures the custom timeout for each retry to use for detecting endpoint.
| |