List of usage examples for com.amazonaws SDKGlobalConfiguration ALTERNATE_SECRET_KEY_ENV_VAR
String ALTERNATE_SECRET_KEY_ENV_VAR
To view the source code for com.amazonaws SDKGlobalConfiguration ALTERNATE_SECRET_KEY_ENV_VAR.
Click Source Link
From source file:org.apache.usergrid.persistence.queue.impl.UsergridAwsCredentials.java
License:Apache License
@Override public String getAWSSecretKey() { String secret = System.getProperty(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR); if (StringUtils.isEmpty(secret)) { secret = System.getProperty(SDKGlobalConfiguration.ALTERNATE_SECRET_KEY_ENV_VAR); }/* w w w .j a v a 2 s . co m*/ return StringUtils.trim(secret); }
From source file:org.apache.usergrid.persistence.queue.impl.UsergridAwsCredentials.java
License:Apache License
public String getAWSSecretKeyJson(Map<String, Object> jsonObject) { String secretKey = (String) jsonObject.get(SDKGlobalConfiguration.SECRET_KEY_ENV_VAR); if (StringUtils.isEmpty(secretKey)) { secretKey = (String) jsonObject.get(SDKGlobalConfiguration.ALTERNATE_SECRET_KEY_ENV_VAR); }/*from w w w . j ava 2 s. com*/ if (StringUtils.isEmpty(secretKey)) { throw new AmazonClientException("Could not get aws secret key from json object."); } return StringUtils.trim(secretKey); }