Package pgp.cert_d

Class BaseDirectoryProvider


  • public class BaseDirectoryProvider
    extends java.lang.Object
    Provider class that is responsible for resolving the pgp.cert.d base directory of the system. The result can be overwritten by setting the
    PGP_CERT_D
    environment variable. If this variable is not set, the system-specific default directory will be returned. On Windows systems, this is
    %APPDATA%\pgp.cert.d
    . On Linux systems it is either
    $XDG_DATA_HOME/pgp.cert.d
    or, if
    $XDG_DATA_HOME
    is not set, it is
    $HOME/.local/share/pgp.cert.d
    On Mac systems it is
    $HOME/Library/Application Support/pgp.cert.d
    .
    • Constructor Detail

      • BaseDirectoryProvider

        public BaseDirectoryProvider()
    • Method Detail

      • getDefaultBaseDir

        public static java.io.File getDefaultBaseDir()
      • getDefaultBaseDirForOS

        public static java.io.File getDefaultBaseDirForOS​(java.lang.String osName)