com.amazonaws.services.s3.model

## クラス EncryptionMaterials

- java.lang.Object
- - com.amazonaws.services.s3.model.EncryptionMaterials

-     public class EncryptionMaterials
      extends java.lang.Object

  Stores materials to be used in encryption. These materials may be either an asymmetric key pair or a symmetric key but not both.

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

    コンストラクタ
    修飾子 | コンストラクタと説明
    --- | ---
    `` | `EncryptionMaterials(java.security.KeyPair keyPair)` Constructs a new EncryptionMaterials object, storing an asymmetric key pair.
    `protected` | `EncryptionMaterials(java.security.KeyPair keyPair, javax.crypto.SecretKey symmetricKey)` Base constructor for the EncryptionMaterials object.
    `` | `EncryptionMaterials(javax.crypto.SecretKey symmetricKey)` Constructs a new EncryptionMaterials object, storing a symmetric key.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `EncryptionMaterialsAccessor` | `getAccessor()` Returns null since the EncryptionMaterials base class does not have a materials accessor.
    `java.security.KeyPair` | `getKeyPair()` Returns the key pair stored in this EncryptionMaterials object.
    `java.util.Map<java.lang.String,java.lang.String>` | `getMaterialsDescription()` Returns an empty map since the EncryptionMaterials base class does not have extra materials information.
    `javax.crypto.SecretKey` | `getSymmetricKey()` Returns the symmetric key stored in this EncryptionMaterials object.

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

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

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

    - #### EncryptionMaterials

          public EncryptionMaterials(java.security.KeyPair keyPair)

      Constructs a new EncryptionMaterials object, storing an asymmetric key pair.
      パラメータ:
        `keyPair` - The asymmetric key pair to be stored in this EncryptionMaterials object.

    - #### EncryptionMaterials

          public EncryptionMaterials(javax.crypto.SecretKey symmetricKey)

      Constructs a new EncryptionMaterials object, storing a symmetric key.
      パラメータ:
        `symmetricKey` - The symmetric key to be stored in this EncryptionMaterials object.

    - #### EncryptionMaterials

          protected EncryptionMaterials(java.security.KeyPair keyPair,
                             javax.crypto.SecretKey symmetricKey)

      Base constructor for the EncryptionMaterials object. This is not publicly visible since it should not be possible to create an EncryptionMaterials object that contains both an asymmetric key pair and a symmetric key.

  - ### メソッドの詳細

    - #### getKeyPair

          public java.security.KeyPair getKeyPair()

      Returns the key pair stored in this EncryptionMaterials object.
      戻り値:
        the key pair stored in this EncryptionMaterials object.

    - #### getSymmetricKey

          public javax.crypto.SecretKey getSymmetricKey()

      Returns the symmetric key stored in this EncryptionMaterials object.
      戻り値:
        the symmetric key stored in this EncryptionMaterials object.

    - #### getMaterialsDescription

          public java.util.Map<java.lang.String,java.lang.String> getMaterialsDescription()

      Returns an empty map since the EncryptionMaterials base class does not have extra materials information. Subclasses may override this method.
      戻り値:
        an empty map

    - #### getAccessor

          public EncryptionMaterialsAccessor getAccessor()

      Returns null since the EncryptionMaterials base class does not have a materials accessor. Subclasses may override this method.
      戻り値:
        null