code: public synchronized AWSSessionCredentials getImmutableCredentials() {
          Credentials creds = getSessionCredentials();
          return new BasicSessionCredentials(creds.getAccessKeyId(), creds.getSecretAccessKey(), creds.getSessionToken());
      }
docs: Returns immutable session credentials for this session, beginning a new one if necessary.