Class RawKeyring.Builder<KeyringT extends RawKeyring<T>,​BuilderT extends RawKeyring.Builder<KeyringT,​BuilderT,​T>,​T>

  • Type Parameters:
    KeyringT - the type of keyring being built
    BuilderT - the type of builder
    T - 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.
    • Constructor Detail

      • Builder

        protected Builder()
    • 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.