public class DefaultCredentials extends Object implements Credentials
Credentials.| Constructor and Description |
|---|
DefaultCredentials(String accessKeyId,
String secretAccessKey) |
DefaultCredentials(String accessKeyId,
String secretAccessKey,
String securityToken) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccessKeyId()
Returns the access key ID for this credentials.
|
String |
getSecretAccessKey()
Returns the secret access key for this credentials.
|
String |
getSecurityToken()
Returns the security token for this credentials.
|
boolean |
useSecurityToken()
Determines whether to use security token for http requests.
|
public String getAccessKeyId()
CredentialsgetAccessKeyId in interface Credentialspublic String getSecretAccessKey()
CredentialsgetSecretAccessKey in interface Credentialspublic String getSecurityToken()
CredentialsgetSecurityToken in interface Credentialspublic boolean useSecurityToken()
CredentialsuseSecurityToken in interface CredentialsCopyright © 2021. All Rights Reserved.