/** * Returns the session token for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a proxy to this method. */ @Override public synchronized String getSessionToken() { return getSessionCredentials().getSessionToken(); }
/** * Gets a current session credentials object, reinitializing if necessary. */ private synchronized Credentials getSessionCredentials() { if ( needsNewSession() ) refreshCredentials(); return sessionCredentials; }
/** * Gets a current session credentials object, reinitializing if necessary. */ private synchronized Credentials getSessionCredentials() { if (needsNewSession()) refreshCredentials(); return sessionCredentials; }
/** * Returns the AWS access key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a proxy to this method. */ @Override public synchronized String getAWSAccessKeyId() { return getSessionCredentials().getAccessKeyId(); }
/** * Gets a current session credentials object, reinitializing if necessary. */ private synchronized Credentials getSessionCredentials() { if (needsNewSession()) refreshCredentials(); return sessionCredentials; }
/** * Returns the AWS secret key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a proxy to this method. */ @Override public synchronized String getAWSSecretKey() { return getSessionCredentials().getSecretAccessKey(); }
/** * Gets a current session credentials object, reinitializing if necessary. */ private synchronized Credentials getSessionCredentials() { if ( needsNewSession() ) refreshCredentials(); return sessionCredentials; }
/** * Returns immutable session credentials for this session, beginning a new one if necessary. */ public synchronized AWSSessionCredentials getImmutableCredentials() { Credentials creds = getSessionCredentials(); return new BasicSessionCredentials(creds.getAccessKeyId(), creds.getSecretAccessKey(), creds.getSessionToken()); }
/** * Gets a current session credentials object, reinitializing if necessary. */ private synchronized Credentials getSessionCredentials() { if (needsNewSession()) refreshCredentials(); return sessionCredentials; }
/** * Returns the AWS secret key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a * proxy to this method. */ @Override public synchronized String getAWSSecretKey() { return getSessionCredentials().getSecretAccessKey(); }
/** * Returns the AWS access key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a * proxy to this method. */ @Override public synchronized String getAWSAccessKeyId() { return getSessionCredentials().getAccessKeyId(); }
/** * Returns the session token for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a * proxy to this method. */ @Override public synchronized String getSessionToken() { return getSessionCredentials().getSessionToken(); }
/** * Returns immutable session credentials for this session, beginning a new * one if necessary. */ public synchronized AWSSessionCredentials getImmutableCredentials() { Credentials creds = getSessionCredentials(); return new BasicSessionCredentials(creds.getAccessKeyId(), creds.getSecretAccessKey(), creds.getSessionToken()); }
/** * Returns the AWS access key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a proxy to this method. */ @Override public synchronized String getAWSAccessKeyId() { return getSessionCredentials().getAccessKeyId(); }
/** * Returns the AWS secret key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a * proxy to this method. */ @Override public synchronized String getAWSSecretKey() { return getSessionCredentials().getSecretAccessKey(); }
/** * Returns the AWS secret key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a proxy to this method. */ @Override public synchronized String getAWSSecretKey() { return getSessionCredentials().getSecretAccessKey(); }
/** * Returns the session token for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a proxy to this method. */ @Override public synchronized String getSessionToken() { return getSessionCredentials().getSessionToken(); }
/** * Returns the AWS access key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a * proxy to this method. */ @Override public synchronized String getAWSAccessKeyId() { return getSessionCredentials().getAccessKeyId(); }
/** * Returns the session token for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a * proxy to this method. */ @Override public synchronized String getSessionToken() { return getSessionCredentials().getSessionToken(); }
/** * Returns the AWS secret key for the current STS session, beginning a new * one if necessary. * <p> * Clients are encouraged to call the atomic * {@link RenewableAWSSessionCredentials#getImmutableCredentials()} as a * proxy to this method. */ @Override public synchronized String getAWSSecretKey() { return getSessionCredentials().getSecretAccessKey(); }