Class RawKeyring.Builder<KeyringT extends RawKeyring<T>,BuilderT extends RawKeyring.Builder<KeyringT,BuilderT,T>,T>
- java.lang.Object
-
- software.amazon.encryption.s3.materials.S3Keyring.Builder<KeyringT,BuilderT>
-
- software.amazon.encryption.s3.materials.RawKeyring.Builder<KeyringT,BuilderT,T>
-
- Type Parameters:
KeyringT- the type of keyring being builtBuilderT- the type of builderT- the type of key material used by this keyring
- Direct Known Subclasses:
AesKeyring.Builder,RsaKeyring.Builder
- Enclosing class:
- RawKeyring<T>
public abstract static class RawKeyring.Builder<KeyringT extends RawKeyring<T>,BuilderT extends RawKeyring.Builder<KeyringT,BuilderT,T>,T> extends S3Keyring.Builder<KeyringT,BuilderT>
Abstract builder for RawKeyring implementations. Provides common functionality for setting materials description on raw keyrings.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<MaterialsDescription,RawKeyMaterial<T>>_additionalDecryptionKeyMaterialprotected MaterialsDescription_materialsDescription
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuilderTadditionalDecryptionKeyMaterial(Map<MaterialsDescription,RawKeyMaterial<T>> additionalDecryptionKeyMaterial)Sets the map of keys for which to use for decryption.BuilderTmaterialsDescription(MaterialsDescription materialsDescription)Sets the materials description for this keyring.-
Methods inherited from class software.amazon.encryption.s3.materials.S3Keyring.Builder
build, builder, dataKeyGenerator, enableLegacyWrappingAlgorithms, secureRandom
-
-
-
-
Field Detail
-
_materialsDescription
protected MaterialsDescription _materialsDescription
-
_additionalDecryptionKeyMaterial
protected Map<MaterialsDescription,RawKeyMaterial<T>> _additionalDecryptionKeyMaterial
-
-
Method Detail
-
materialsDescription
public BuilderT materialsDescription(MaterialsDescription materialsDescription)
Sets the materials description for this keyring. Materials description provides additional metadata for raw keyrings.- Parameters:
materialsDescription- the materials description to associate with this keyring.- Returns:
- a reference to this object so that method calls can be chained together.
-
additionalDecryptionKeyMaterial
public BuilderT additionalDecryptionKeyMaterial(Map<MaterialsDescription,RawKeyMaterial<T>> additionalDecryptionKeyMaterial)
Sets the map of keys for which to use for decryption.- Parameters:
additionalDecryptionKeyMaterial- the map of additional key material for decryption, where the key is the materials description and the value is the key material- Returns:
- a reference to this object so that method calls can be chained together.
-
-