Package jetbrains.buildServer.agent.ssl
Class TrustedCertificatesDirectory
- java.lang.Object
-
- jetbrains.buildServer.agent.ssl.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 Summary
Fields Modifier and Type Field Description static java.lang.String
ALL_CERTIFICATES_DIRECTORY
static java.lang.String
MANUAL_CERTIFICATES_DIRECTORY
static java.lang.String
SERVER_CERTIFICATES_DIRECTORY
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static java.lang.String
getAllCertificatesDirectory(BuildAgentConfiguration agentConfiguration)
static java.lang.String
getAllCertificatesDirectoryFromHome(java.lang.String homeDir)
Deprecated.usegetAllCertificatesDirectory(jetbrains.buildServer.agent.BuildAgentConfiguration)
instead of thisstatic java.lang.String
getCertificateDirectoryFromHome(java.lang.String homeDir)
Deprecated.usegetAllCertificatesDirectoryFromHome(String)
instead.static java.lang.String
getManualCertificatesDirectoryFromHome(java.lang.String homeDir)
Returns path to directory with manual trusted certificates.static java.lang.String
getServerCertificatesDirectory(BuildAgentConfiguration agentConfiguration)
static java.lang.String
getServerCertificatesDirectoryFromHome(java.lang.String homeDir)
Deprecated.
-
-
-
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)
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 java.lang.String getServerCertificatesDirectory(@NotNull BuildAgentConfiguration agentConfiguration)
-
getAllCertificatesDirectoryFromHome
@Deprecated @NotNull public static java.lang.String getAllCertificatesDirectoryFromHome(@NotNull java.lang.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 java.lang.String getAllCertificatesDirectory(@NotNull BuildAgentConfiguration agentConfiguration)
-
getCertificateDirectoryFromHome
@Deprecated @NotNull public static java.lang.String getCertificateDirectoryFromHome(@NotNull java.lang.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
-
-