List of usage examples for com.amazonaws.auth AWSSessionCredentials getAWSAccessKeyId
public String getAWSAccessKeyId();
From source file:io.fineo.client.auth.CognitoCachingCredentialsProvider.java
License:Open Source License
/** * Save the credentials to SharedPreferences *///from w w w.ja v a2 s . c o m private void saveCredentials(AWSSessionCredentials sessionCredentials, long time) { LOG.debug(TAG, "Saving credentials to SharedPreferences"); if (sessionCredentials != null) { cache.put(namespace(AK_KEY), sessionCredentials.getAWSAccessKeyId()); cache.put(namespace(SK_KEY), sessionCredentials.getAWSSecretKey()); cache.put(namespace(ST_KEY), sessionCredentials.getSessionToken()); cache.put(namespace(EXP_KEY), Long.toString(time)); } }