Package jetbrains.buildServer.agent.ssl
Class TrustedCertificatesDirectory
- java.lang.Object
-
- jetbrains.buildServer.agent.ssl.TrustedCertificatesDirectory
-
public class TrustedCertificatesDirectory extends Object
Utility class which knows where agent trusted certificates are stored.- Since:
- 2018.1
- Author:
- Mikhail Khorkov
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALL_CERTIFICATES_DIRECTORY
static String
MANUAL_CERTIFICATES_DIRECTORY
static String
SERVER_CERTIFICATES_DIRECTORY
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static String
getAllCertificatesDirectory(BuildAgentConfiguration agentConfiguration)
static String
getAllCertificatesDirectoryFromHome(String homeDir)
Deprecated.usegetAllCertificatesDirectory(jetbrains.buildServer.agent.BuildAgentConfiguration)
instead of thisstatic String
getCertificateDirectoryFromHome(String homeDir)
Deprecated.usegetAllCertificatesDirectoryFromHome(String)
instead.static String
getManualCertificatesDirectoryFromHome(String homeDir)
Returns path to directory with manual trusted certificates.static String
getServerCertificatesDirectory(BuildAgentConfiguration agentConfiguration)
static String
getServerCertificatesDirectoryFromHome(String homeDir)
Deprecated.
-
-
-
Field Detail
-
MANUAL_CERTIFICATES_DIRECTORY
public static final String MANUAL_CERTIFICATES_DIRECTORY
- See Also:
- Constant Field Values
-
SERVER_CERTIFICATES_DIRECTORY
public static final String SERVER_CERTIFICATES_DIRECTORY
- See Also:
- Constant Field Values
-
ALL_CERTIFICATES_DIRECTORY
public static final String ALL_CERTIFICATES_DIRECTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getManualCertificatesDirectoryFromHome
@NotNull public static String getManualCertificatesDirectoryFromHome(@NotNull 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 String getServerCertificatesDirectoryFromHome(@NotNull String homeDir)
Deprecated.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 String getServerCertificatesDirectory(@NotNull BuildAgentConfiguration agentConfiguration)
-
getAllCertificatesDirectoryFromHome
@Deprecated @NotNull public static String getAllCertificatesDirectoryFromHome(@NotNull String homeDir)
Deprecated.usegetAllCertificatesDirectory(jetbrains.buildServer.agent.BuildAgentConfiguration)
instead of thisReturns 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 String getAllCertificatesDirectory(@NotNull BuildAgentConfiguration agentConfiguration)
-
getCertificateDirectoryFromHome
@Deprecated @NotNull public static String getCertificateDirectoryFromHome(@NotNull String homeDir)
Deprecated.usegetAllCertificatesDirectoryFromHome(String)
instead.Returns path to directory with trusted certificates.- Parameters:
homeDir
- agent home directory- Returns:
- path to directory with trusted certificates
-
-