Class TrustedCertificatesDirectory


  • public class TrustedCertificatesDirectory
    extends java.lang.Object
    Utility class which knows where agent trusted certificates are stored.
    Since:
    2018.1
    Author:
    Mikhail Khorkov
    • Field Detail

      • MANUAL_CERTIFICATES_DIRECTORY

        public static final java.lang.String MANUAL_CERTIFICATES_DIRECTORY
        See Also:
        Constant Field Values
      • SERVER_CERTIFICATES_DIRECTORY

        public static final java.lang.String SERVER_CERTIFICATES_DIRECTORY
        See Also:
        Constant Field Values
      • ALL_CERTIFICATES_DIRECTORY

        public static final java.lang.String ALL_CERTIFICATES_DIRECTORY
        See Also:
        Constant Field Values
    • Method Detail

      • getManualCertificatesDirectoryFromHome

        @NotNull
        public static java.lang.String getManualCertificatesDirectoryFromHome​(@NotNull
                                                                              java.lang.String homeDir)
        Returns path to directory with manual trusted certificates.
        Parameters:
        homeDir - agent home directory
        Returns:
        path to directory with trusted certificates
      • getServerCertificatesDirectoryFromHome

        @Deprecated
        @NotNull
        public static java.lang.String getServerCertificatesDirectoryFromHome​(@NotNull
                                                                              java.lang.String homeDir)
        Returns path to directory with synchronized (from server) trusted certificates.
        Parameters:
        homeDir - agent home directory
        Returns:
        path to directory with trusted certificates
      • getServerCertificatesDirectory

        public static java.lang.String getServerCertificatesDirectory​(@NotNull
                                                                      BuildAgentConfiguration agentConfiguration)
      • getAllCertificatesDirectoryFromHome

        @Deprecated
        @NotNull
        public static java.lang.String getAllCertificatesDirectoryFromHome​(@NotNull
                                                                           java.lang.String homeDir)
        Returns path to directory with all (manual and synchronized from server) trusted certificates.
        Parameters:
        homeDir - agent home directory
        Returns:
        path to directory with trusted certificates
      • getAllCertificatesDirectory

        public static java.lang.String getAllCertificatesDirectory​(@NotNull
                                                                   BuildAgentConfiguration agentConfiguration)
      • getCertificateDirectoryFromHome

        @Deprecated
        @NotNull
        public static java.lang.String getCertificateDirectoryFromHome​(@NotNull
                                                                       java.lang.String homeDir)
        Returns path to directory with trusted certificates.
        Parameters:
        homeDir - agent home directory
        Returns:
        path to directory with trusted certificates