Class AesKeyMaterial.Builder
- java.lang.Object
-
- software.amazon.encryption.s3.materials.AesKeyMaterial.Builder
-
- Enclosing class:
- AesKeyMaterial
public static class AesKeyMaterial.Builder extends Object
Builder for AesKeyMaterial.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AesKeyMaterialbuild()AesKeyMaterial.BuilderkeyMaterial(SecretKey keyMaterial)Sets the AES key material.AesKeyMaterial.BuildermaterialsDescription(MaterialsDescription materialsDescription)Sets the materials description for this AES key material.
-
-
-
Method Detail
-
materialsDescription
public AesKeyMaterial.Builder materialsDescription(MaterialsDescription materialsDescription)
Sets the materials description for this AES key material.- Parameters:
materialsDescription- the materials description- Returns:
- a reference to this object so that method calls can be chained together.
-
keyMaterial
public AesKeyMaterial.Builder keyMaterial(SecretKey keyMaterial)
Sets the AES key material.- Parameters:
keyMaterial- the AES key material- Returns:
- a reference to this object so that method calls can be chained together.
-
build
public AesKeyMaterial build()
- Returns:
- the built AesKeyMaterial
-
-