com.amazonaws.auth

## クラス STSSessionCredentials

- java.lang.Object
- - com.amazonaws.auth.STSSessionCredentials

- すべての実装されたインタフェース:
    AWSCredentials, AWSRefreshableSessionCredentials, AWSSessionCredentials

  非推奨です。

      @Deprecated
      public class STSSessionCredentials
      extends java.lang.Object
      implements AWSRefreshableSessionCredentials

  Session credentials periodically refreshed by AWS SecurityTokenService.

  Calls to `getAWSAccessKeyId()`, `getAWSSecretKey()`, and `getSessionToken()` should be synchronized on this object to prevent races on the boundary of session expiration. Alternately, clients can call `getImmutableCredentials()` to ensure a consistent set of access key, secret key, and token.

  This class is deprecated and should not be used anymore. Instead, use `STSSessionCredentialsProvider`.

- - ### フィールドの概要

    フィールド
    修飾子とタイプ | フィールドと説明
    --- | ---
    `static int` | `DEFAULT_DURATION_SECONDS` 非推奨です。

  - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `STSSessionCredentials(AWSCredentials credentials)` 非推奨です。 Create a new credentials object that will periodically and automatically obtain a session from STS.
    `STSSessionCredentials(AWSCredentials credentials, int sessionDurationSeconds)` 非推奨です。 Create a new credentials object that will periodically and automatically obtain a session from STS.
    `STSSessionCredentials(AWSSecurityTokenService stsClient)` 非推奨です。 Create a new credentials object that will periodically and automatically obtain a session from STS, using a preconfigured STS client.
    `STSSessionCredentials(AWSSecurityTokenService stsClient, int sessionDuratinSeconds)` 非推奨です。 Create a new credentials object that will periodically and automatically obtain a session from STS, using a preconfigured STS client.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getAWSAccessKeyId()` 非推奨です。 Returns the AWS access key for the current STS session, beginning a new one if necessary.
    `java.lang.String` | `getAWSSecretKey()` 非推奨です。 Returns the AWS secret key for the current STS session, beginning a new one if necessary.
    `AWSSessionCredentials` | `getImmutableCredentials()` 非推奨です。 Returns immutable session credentials for this session, beginning a new one if necessary.
    `java.lang.String` | `getSessionToken()` 非推奨です。 Returns the session token for the current STS session, beginning a new one if necessary.
    `void` | `refreshCredentials()` 非推奨です。 Refreshes the session credentials from STS.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### フィールドの詳細

    - #### DEFAULT_DURATION_SECONDS

          public static final int DEFAULT_DURATION_SECONDS

      非推奨です。
      関連項目:
        定数フィールド値

  - ### コンストラクタの詳細

    - #### STSSessionCredentials

          public STSSessionCredentials(AWSCredentials credentials)

      非推奨です。
      Create a new credentials object that will periodically and automatically obtain a session from STS.
      パラメータ:
        `credentials` - Primary AWS account credentials.

    - #### STSSessionCredentials

          public STSSessionCredentials(AWSCredentials credentials,
                               int sessionDurationSeconds)

      非推奨です。
      Create a new credentials object that will periodically and automatically obtain a session from STS.
      パラメータ:
        `credentials` - Primary AWS account credentials.
        `sessionDurationSeconds` - The duration, in seconds, for each session to last.

    - #### STSSessionCredentials

          public STSSessionCredentials(AWSSecurityTokenService stsClient)

      非推奨です。
      Create a new credentials object that will periodically and automatically obtain a session from STS, using a preconfigured STS client.
      パラメータ:
        `stsClient` - A pre-configured STS client from which to get credentials.

    - #### STSSessionCredentials

          public STSSessionCredentials(AWSSecurityTokenService stsClient,
                               int sessionDuratinSeconds)

      非推奨です。
      Create a new credentials object that will periodically and automatically obtain a session from STS, using a preconfigured STS client.
      パラメータ:
        `stsClient` - A pre-configured STS client from which to get credentials.
        `settings` - Session settings for all sessions created

  - ### メソッドの詳細

    - #### getAWSAccessKeyId

          public java.lang.String getAWSAccessKeyId()

      非推奨です。
      Returns the AWS access key for the current STS session, beginning a new one if necessary.

      Clients are encouraged to call the atomic `RenewableAWSSessionCredentials#getImmutableCredentials()` as a proxy to this method.

      定義:
        `getAWSAccessKeyId` インタフェース内 `AWSCredentials`
      戻り値:
        The AWS access key ID for this credentials object.

    - #### getAWSSecretKey

          public java.lang.String getAWSSecretKey()

      非推奨です。
      Returns the AWS secret key for the current STS session, beginning a new one if necessary.

      Clients are encouraged to call the atomic `RenewableAWSSessionCredentials#getImmutableCredentials()` as a proxy to this method.

      定義:
        `getAWSSecretKey` インタフェース内 `AWSCredentials`
      戻り値:
        The AWS secret access key for this credentials object.

    - #### getSessionToken

          public java.lang.String getSessionToken()

      非推奨です。
      Returns the session token for the current STS session, beginning a new one if necessary.

      Clients are encouraged to call the atomic `RenewableAWSSessionCredentials#getImmutableCredentials()` as a proxy to this method.

      定義:
        `getSessionToken` インタフェース内 `AWSSessionCredentials`

    - #### getImmutableCredentials

          public AWSSessionCredentials getImmutableCredentials()

      非推奨です。
      Returns immutable session credentials for this session, beginning a new one if necessary.

    - #### refreshCredentials

          public void refreshCredentials()

      非推奨です。
      Refreshes the session credentials from STS.
      定義:
        `refreshCredentials` インタフェース内 `AWSRefreshableSessionCredentials`