/** * To be used to help the calling of the 2hop flow in event of the identity * id being either missing or deleted. Once that is caught as having * happened, this call is made, which will clear the old id, get a new * one/token, and get the flow going back to where it was with a new request * * @return the result of the new request */ private GetCredentialsForIdentityResult retryGetCredentialsForIdentity() { token = retryRefresh(); Map<String, String> logins; if (token != null && !token.isEmpty()) { logins = new HashMap<String, String>(); logins.put(getLoginsKey(), token); } else { logins = getLogins(); } GetCredentialsForIdentityRequest request = new GetCredentialsForIdentityRequest() .withIdentityId(getIdentityId()) .withLogins(logins).withCustomRoleArn(customRoleArn); return cib.getCredentialsForIdentity(request); }
.withLogins(logins).withCustomRoleArn(customRoleArn);
/** * To be used to help the calling of the 2hop flow in event of the identity * id being either missing or deleted. Once that is caught as having * happened, this call is made, which will clear the old id, get a new * one/token, and get the flow going back to where it was with a new request * * @return the result of the new request */ private GetCredentialsForIdentityResult retryGetCredentialsForIdentity() { token = retryRefresh(); Map<String, String> logins; if (token != null && !token.isEmpty()) { logins = new HashMap<String, String>(); logins.put("cognito-identity.amazonaws.com", token); } else { logins = getLogins(); } GetCredentialsForIdentityRequest request = new GetCredentialsForIdentityRequest() .withIdentityId(getIdentityId()) .withLogins(logins).withCustomRoleArn(customRoleArn); return cib.getCredentialsForIdentity(request); }
/** * To be used to help the calling of the 2hop flow in event of the identity * id being either missing or deleted. Once that is caught as having * happened, this call is made, which will clear the old id, get a new * one/token, and get the flow going back to where it was with a new request * * @return the result of the new request */ private GetCredentialsForIdentityResult retryGetCredentialsForIdentity() { token = retryRefresh(); Map<String, String> logins; if (token != null && !token.isEmpty()) { logins = new HashMap<String, String>(); logins.put(getLoginsKey(), token); } else { logins = getLogins(); } GetCredentialsForIdentityRequest request = new GetCredentialsForIdentityRequest() .withIdentityId(getIdentityId()) .withLogins(logins).withCustomRoleArn(customRoleArn); return cib.getCredentialsForIdentity(request); }
.withLogins(logins).withCustomRoleArn(customRoleArn);
.withLogins(logins).withCustomRoleArn(customRoleArn);