Class GpgConfig.FromYaml

java.lang.Object
com.artipie.debian.GpgConfig.FromYaml
All Implemented Interfaces:
GpgConfig
Enclosing interface:
GpgConfig

public static final class GpgConfig.FromYaml extends Object implements GpgConfig
Gpg-configuration from yaml settings.
Since:
0.4
  • Constructor Details

    • FromYaml

      public FromYaml(Optional<com.amihaiemil.eoyaml.YamlMapping> yaml, Storage storage)
      Ctor.
      Parameters:
      yaml - Yaml `settings` section
      storage - Artipie configuration storage
    • FromYaml

      public FromYaml(com.amihaiemil.eoyaml.YamlMapping yaml, Storage storage)
      Ctor.
      Parameters:
      yaml - Yaml `settings` section
      storage - Artipie configuration storage
  • Method Details

    • password

      public String password()
      Description copied from interface: GpgConfig
      Password to unlock gpg-private key.
      Specified by:
      password in interface GpgConfig
      Returns:
      String password
    • key

      public CompletionStage<byte[]> key()
      Description copied from interface: GpgConfig
      Gpg-private key.
      Specified by:
      key in interface GpgConfig
      Returns:
      Completion action with key bytes