@Override public AWSSessionCredentials getCredentials() { if (needsNewSession()) startSession(); return sessionCredentials; }
/** * Set the refresh threshold for the session credentials created by this client in * seconds. This value will be used internally to determine if new * credentials should be fetched from STS. Returns a refrence to the object * so methods can be chained. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * * @param refreshThreshold * The new refresh threshold for session credentials created by this * provider * * @return A reference to this updated object so that method calls * can be chained together. * */ public WebIdentityFederationSessionCredentialsProvider withRefreshThreshold(int refreshThreshold) { this.setRefreshThreshold(refreshThreshold); return this; }
/** * Set the duration of the session credentials created by this client in * seconds. Values must be supported by AssumeRoleWithWebIdentityRequest. * Returns refreence to object so methods can be chained together. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * * @param sessionDuration * The new duration for session credentials created by this * provider * * @return A reference to this updated object so that method calls * can be chained together. * */ public WebIdentityFederationSessionCredentialsProvider withSessionDuration(int sessionDuration) { this.setSessionDuration(sessionDuration); return this; }
@Override public void refresh() { startSession(); }
@Override public void refresh() { startSession(); }
@Override public AWSCredentials getCredentials() { if (needsNewSession()) startSession(); return sessionCredentials; }
@Override public void refresh() { startSession(); }
/** * Set the refresh threshold for the session credentials created by this * client in seconds. This value will be used internally to determine if new * credentials should be fetched from STS. Returns a refrence to the object * so methods can be chained. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * @param refreshThreshold The new refresh threshold for session credentials * created by this provider * @return A reference to this updated object so that method calls can be * chained together. */ public WebIdentityFederationSessionCredentialsProvider withRefreshThreshold(int refreshThreshold) { this.setRefreshThreshold(refreshThreshold); return this; }
/** * Set the duration of the session credentials created by this client in * seconds. Values must be supported by AssumeRoleWithWebIdentityRequest. * Returns refreence to object so methods can be chained together. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * @param sessionDuration The new duration for session credentials created by * this provider * @return A reference to this updated object so that method calls can be * chained together. */ public WebIdentityFederationSessionCredentialsProvider withSessionDuration(int sessionDuration) { this.setSessionDuration(sessionDuration); return this; }
@Override public AWSSessionCredentials getCredentials() { if (needsNewSession()) startSession(); return sessionCredentials; }
@Override public void refresh() { startSession(); }
/** * Set the refresh threshold for the session credentials created by this * client in seconds. This value will be used internally to determine if new * credentials should be fetched from STS. Returns a refrence to the object * so methods can be chained. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * @param refreshThreshold The new refresh threshold for session credentials * created by this provider * @return A reference to this updated object so that method calls can be * chained together. */ public WebIdentityFederationSessionCredentialsProvider withRefreshThreshold(int refreshThreshold) { this.setRefreshThreshold(refreshThreshold); return this; }
/** * Set the duration of the session credentials created by this client in * seconds. Values must be supported by AssumeRoleWithWebIdentityRequest. * Returns refreence to object so methods can be chained together. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * @param sessionDuration The new duration for session credentials created by * this provider * @return A reference to this updated object so that method calls can be * chained together. */ public WebIdentityFederationSessionCredentialsProvider withSessionDuration(int sessionDuration) { this.setSessionDuration(sessionDuration); return this; }
@Override public AWSCredentials getCredentials() { if (needsNewSession()) startSession(); return sessionCredentials; }
@Override public void refresh() { startSession(); }
/** * Set the refresh threshold for the session credentials created by this * client in seconds. This value will be used internally to determine if new * credentials should be fetched from STS. Returns a refrence to the object * so methods can be chained. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * @param refreshThreshold The new refresh threshold for session credentials * created by this provider * @return A reference to this updated object so that method calls can be * chained together. */ public WebIdentityFederationSessionCredentialsProvider withRefreshThreshold(int refreshThreshold) { this.setRefreshThreshold(refreshThreshold); return this; }
/** * Set the duration of the session credentials created by this client in * seconds. Values must be supported by AssumeRoleWithWebIdentityRequest. * Returns refreence to object so methods can be chained together. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * @param sessionDuration The new duration for session credentials created by * this provider * @return A reference to this updated object so that method calls can be * chained together. */ public WebIdentityFederationSessionCredentialsProvider withSessionDuration(int sessionDuration) { this.setSessionDuration(sessionDuration); return this; }
@Override public AWSCredentials getCredentials() { if (needsNewSession()) startSession(); return sessionCredentials; }
/** * Set the refresh threshold for the session credentials created by this client in * seconds. This value will be used internally to determine if new * credentials should be fetched from STS. Returns a refrence to the object * so methods can be chained. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * * @param refreshThreshold * The new refresh threshold for session credentials created by this * provider * * @return A reference to this updated object so that method calls * can be chained together. * */ public WebIdentityFederationSessionCredentialsProvider withRefreshThreshold(int refreshThreshold) { this.setRefreshThreshold(refreshThreshold); return this; }
/** * Set the duration of the session credentials created by this client in * seconds. Values must be supported by AssumeRoleWithWebIdentityRequest. * Returns refreence to object so methods can be chained together. * * @see com.amazonaws.services.securitytoken.model.AssumeRoleWithWebIdentityRequest * * @param sessionDuration * The new duration for session credentials created by this * provider * * @return A reference to this updated object so that method calls * can be chained together. * */ public WebIdentityFederationSessionCredentialsProvider withSessionDuration(int sessionDuration) { this.setSessionDuration(sessionDuration); return this; }