code: @Override
      public synchronized void refreshCredentials() {
          GetSessionTokenResult sessionTokenResult = securityTokenService
                  .getSessionToken(new GetSessionTokenRequest().withDurationSeconds(sessionDurationSeconds));
          sessionCredentials = sessionTokenResult.getCredentials();
      }
docs: Refreshes the session credentials from STS.