com.amazonaws.auth

## クラス PropertiesCredentials

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

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

      public class PropertiesCredentials
      extends java.lang.Object
      implements AWSCredentials

  Simple implementation AWSCredentials that reads in AWS access keys from a properties file. The AWS access key is expected to be in the "accessKey" property and the AWS secret key id is expected to be in the "secretKey" property.

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

    コンストラクタ
    コンストラクタと説明
    `PropertiesCredentials(java.io.File file)` Reads the specified file as a Java properties file and extracts the AWS access key from the "accessKey" property and AWS secret access key from the "secretKey" property.
    `PropertiesCredentials(java.io.InputStream inputStream)` Reads the specified input stream as a stream of Java properties file content and extracts the AWS access key ID and secret access key from the properties.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `java.lang.String` | `getAWSAccessKeyId()` Returns the AWS access key ID for this credentials object.
    `java.lang.String` | `getAWSSecretKey()` Returns the AWS secret access key for this credentials object.

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

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

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

    - #### PropertiesCredentials

          public PropertiesCredentials(java.io.File file)
                                throws java.io.FileNotFoundException,
                                       java.io.IOException,
                                       java.lang.IllegalArgumentException

      Reads the specified file as a Java properties file and extracts the AWS access key from the "accessKey" property and AWS secret access key from the "secretKey" property. If the specified file doesn't contain the AWS access keys an IOException will be thrown.
      パラメータ:
        `file` - The file from which to read the AWS credentials properties.
      例外:
        `java.io.FileNotFoundException` - If the specified file isn't found.
        `java.io.IOException` - If any problems are encountered reading the AWS access keys from the specified file.
        `java.lang.IllegalArgumentException` - If the specified properties file does not contain the required keys.

    - #### PropertiesCredentials

          public PropertiesCredentials(java.io.InputStream inputStream)
                                throws java.io.IOException

      Reads the specified input stream as a stream of Java properties file content and extracts the AWS access key ID and secret access key from the properties.
      パラメータ:
        `inputStream` - The input stream containing the AWS credential properties.
      例外:
        `java.io.IOException` - If any problems occur while reading from the input stream.

  - ### メソッドの詳細

    - #### getAWSAccessKeyId

          public java.lang.String getAWSAccessKeyId()

      インタフェースからコピーされた説明: `AWSCredentials`
      Returns the AWS access key ID for this credentials object.
      定義:
        `getAWSAccessKeyId` インタフェース内 `AWSCredentials`
      戻り値:
        The AWS access key ID for this credentials object.

    - #### getAWSSecretKey

          public java.lang.String getAWSSecretKey()

      インタフェースからコピーされた説明: `AWSCredentials`
      Returns the AWS secret access key for this credentials object.
      定義:
        `getAWSSecretKey` インタフェース内 `AWSCredentials`
      戻り値:
        The AWS secret access key for this credentials object.