com.amazonaws.services.securitytoken.model.AssumedRoleUser Java Examples

The following examples show how to use com.amazonaws.services.securitytoken.model.AssumedRoleUser. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SessionCache.java    From strongbox with Apache License 2.0 5 votes vote down vote up
public void save(final AssumedRoleUser assumedRoleUser, final BasicSessionCredentials credentials, final ZonedDateTime expiration) {
    resolveCacheDirectory().mkdirs();

    SessionCacheSchema cache = new SessionCacheSchema(assumedRoleUser.getArn(), assumedRoleUser.getAssumedRoleId(), credentials, expiration);

    try {
        objectMapper.writeValue(file, cache);
    } catch (IOException e) {
        throw new RuntimeException(String.format("Failed to save session cache to '%s'", file.getAbsolutePath()), e);
    }
}
 
Example #2
Source File: AssumedRole.java    From pipeline-aws-plugin with Apache License 2.0 4 votes vote down vote up
private AssumedRole(final Credentials credentials, final AssumedRoleUser assumedRoleUser) {
	this.credentials = credentials;
	this.assumedRoleUser = assumedRoleUser;
}
 
Example #3
Source File: AssumedRole.java    From pipeline-aws-plugin with Apache License 2.0 4 votes vote down vote up
public AssumedRoleUser getAssumedRoleUser() {
	return this.assumedRoleUser;
}