|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.auth.InstanceProfileCredentialsProvider
public class InstanceProfileCredentialsProvider
Credentials provider implementation that loads credentials from the Amazon EC2 Instance Metadata Service.
Field Summary | |
---|---|
protected AWSCredentials |
credentials
The current instance profile credentials |
protected Date |
credentialsExpiration
The expiration for the current instance profile credentials |
protected Date |
lastInstanceProfileCheck
The time of the last attempt to check for new credentials |
Constructor Summary | |
---|---|
InstanceProfileCredentialsProvider()
|
Method Summary | |
---|---|
AWSCredentials |
getCredentials()
Returns AWSCredentials which the caller can use to authorize an AWS request. |
protected boolean |
needsToLoadCredentials()
|
void |
refresh()
Forces this credentials provider to refresh its credentials. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected volatile AWSCredentials credentials
protected volatile Date credentialsExpiration
protected volatile Date lastInstanceProfileCheck
Constructor Detail |
---|
public InstanceProfileCredentialsProvider()
Method Detail |
---|
public AWSCredentials getCredentials()
AWSCredentialsProvider
getCredentials
in interface AWSCredentialsProvider
public void refresh()
AWSCredentialsProvider
refresh
in interface AWSCredentialsProvider
protected boolean needsToLoadCredentials()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |