public static class AmazonS3FileSystem.CredentialsResolverBridge extends Object
CredentialsResolver seam to the AWS SDK's
AwsCredentialsProvider so resolved credentials flow through the native client natively.
The AWS SDK asks its provider for credentials on each request signing, so this bridge gives:
fresh reads of the current snapshot per request, and automatic mid-session re-resolution when
the snapshot reports expiry within AmazonS3FileSystem.CREDENTIALS_EXPIRY_SKEW_MILLISECONDS
(STS/OAuth-style rotation).
Maps Credentials.ACCESS_KEY and Credentials.SECRET_KEY (both required), plus
Credentials.SESSION_TOKEN (optional) for temporary session credentials.
| Constructor and Description |
|---|
CredentialsResolverBridge(AmazonS3FileSystem fileSystem) |
| Modifier and Type | Method and Description |
|---|---|
void |
refresh()
Forces re-resolution from the
CredentialsResolver on the next credentials request. |
AwsCredentials |
resolveCredentials() |
public CredentialsResolverBridge(AmazonS3FileSystem fileSystem)
public AwsCredentials resolveCredentials()
public void refresh()
CredentialsResolver on the next credentials request.
(SDK v2 providers have no refresh hook; expiry-driven re-resolution above covers rotation.)Copyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.