|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.SDKGlobalConfiguration
public class SDKGlobalConfiguration
SDKGlobalConfiguration is to configure any global settings
Field Summary | |
---|---|
static java.lang.String |
ACCESS_KEY_ENV_VAR
Environment variable name for the AWS access key ID |
static java.lang.String |
ACCESS_KEY_SYSTEM_PROPERTY
System property name for the AWS access key ID |
static java.lang.String |
ALTERNATE_ACCESS_KEY_ENV_VAR
Alternate environment variable name for the AWS access key ID |
static java.lang.String |
ALTERNATE_SECRET_KEY_ENV_VAR
Alternate environment variable name for the AWS secret key |
static java.lang.String |
AWS_SESSION_TOKEN_ENV_VAR
Environment variable name for the AWS session token |
static java.lang.String |
DEFAULT_METRICS_SYSTEM_PROPERTY
System property used when starting up the JVM to enable the default metrics collected by the AWS SDK, which uploads the derived statistics to Amazon CloudWatch. |
static java.lang.String |
DEFAULT_S3_STREAM_BUFFER_SIZE
The default size of the buffer when uploading data from a stream. |
static java.lang.String |
DISABLE_CERT_CHECKING_SYSTEM_PROPERTY
Disable validation of server certificates when using the HTTPS protocol. |
static java.lang.String |
DISABLE_REMOTE_REGIONS_FILE_SYSTEM_PROPERTY
By default, the SDK will attempt to download an up-to-date set of region metadata from Amazon CloudFront when first required. |
static java.lang.String |
EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY
System property for overriding the Amazon EC2 Instance Metadata Service endpoint. |
static java.lang.String |
ENABLE_S3_SIGV4_SYSTEM_PROPERTY
By default, the AmazonS3Client will continue to use the legacy S3Signer to authenticate requests it makes to S3 in regions that support the older protocol. |
static java.lang.String |
ENFORCE_S3_SIGV4_SYSTEM_PROPERTY
Like ENABLE_S3_SIGV4_SYSTEM_PROPERTY , but causes the client to
always use Signature Version 4, assuming a region of
"us-east-1" if no explicit region has been configured. |
static java.lang.String |
PROFILING_SYSTEM_PROPERTY
Deprecated. by DEFAULT_METRICS_SYSTEM_PROPERTY .
Internal system property to enable timing info collection. |
static java.lang.String |
REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY
Path to an override file for the region metadata loaded by the SDK that maps service/region pairs to endpoints and vice versa. |
static java.lang.String |
SECRET_KEY_ENV_VAR
Environment variable name for the AWS secret key |
static java.lang.String |
SECRET_KEY_SYSTEM_PROPERTY
System property name for the AWS secret key |
Constructor Summary | |
---|---|
SDKGlobalConfiguration()
|
Method Summary | |
---|---|
static int |
getGlobalTimeOffset()
Gets the global time offset. |
static void |
setGlobalTimeOffset(int timeOffset)
Sets the global time offset. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DISABLE_CERT_CHECKING_SYSTEM_PROPERTY
public static final java.lang.String DEFAULT_METRICS_SYSTEM_PROPERTY
Example: -Dcom.amazonaws.sdk.enableDefaultMetrics
public static final java.lang.String ACCESS_KEY_SYSTEM_PROPERTY
public static final java.lang.String SECRET_KEY_SYSTEM_PROPERTY
public static final java.lang.String EC2_METADATA_SERVICE_OVERRIDE_SYSTEM_PROPERTY
public static final java.lang.String REGIONS_FILE_OVERRIDE_SYSTEM_PROPERTY
public static final java.lang.String DISABLE_REMOTE_REGIONS_FILE_SYSTEM_PROPERTY
If the SDK cannot download region metadata from Amazon CloudFront, it will fall back to loading the region metadata bundled with the SDK when it was released, which may be out of date.
Setting this system property to anything other than null
will
disable this remote fetching, and will only load region
metadata that was bundled with the SDK. This gives you control over
when new region metadata will be picked up by your application, and
isolates you from potential issues if your application depends on being
able to load metadata about a region which is not included in your
version of the SDK and therefore may not be available in the event of
network outages.
public static final java.lang.String ENABLE_S3_SIGV4_SYSTEM_PROPERTY
Signature Version 4 is more secure than the legacy S3Signer, but requires calculating a SHA-256 hash of the entire request body which can be expensive for large upload requests.
public static final java.lang.String ENFORCE_S3_SIGV4_SYSTEM_PROPERTY
ENABLE_S3_SIGV4_SYSTEM_PROPERTY
, but causes the client to
always use Signature Version 4, assuming a region of
"us-east-1" if no explicit region has been configured. This
guarantees that the more secure authentication protocol will be used,
but will cause authentication failures in code that accesses buckets in
regions other than US Standard without explicitly configuring a region.
public static final java.lang.String DEFAULT_S3_STREAM_BUFFER_SIZE
If not set, the default value of 128 KB will be used.
@Deprecated public static final java.lang.String PROFILING_SYSTEM_PROPERTY
DEFAULT_METRICS_SYSTEM_PROPERTY
.
Internal system property to enable timing info collection.public static final java.lang.String ACCESS_KEY_ENV_VAR
public static final java.lang.String ALTERNATE_ACCESS_KEY_ENV_VAR
public static final java.lang.String SECRET_KEY_ENV_VAR
public static final java.lang.String ALTERNATE_SECRET_KEY_ENV_VAR
public static final java.lang.String AWS_SESSION_TOKEN_ENV_VAR
Constructor Detail |
---|
public SDKGlobalConfiguration()
Method Detail |
---|
public static void setGlobalTimeOffset(int timeOffset)
Request.setTimeOffset(int)
timeOffset
- the time difference between local client and serverpublic static int getGlobalTimeOffset()
Request.getTimeOffset()
if global time
offset is not set.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |