Package jetbrains.buildServer.https
Interface HttpsConfigurator
-
- All Known Implementing Classes:
FakeHttpsConfigurator,HttpsConfiguratorImpl
public interface HttpsConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static PathHTTPS_CONFIG_DIRstatic PermissionREQUIRED_USER_PERMISSION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidchangePort(int port)X509CertificategetCertificate()HttpsConfigurationgetConfiguration()URLgetHttpsRedirectUrl()Returns current HTTPS redirect URLAcmeOrdergetPendingAcmeOrder()HttpsRedirectStrategygetRedirectStrategy()voidinitAfterSpring(ExecutorServices executorService, RootUrlHolder urlHolder)voidinitBeforeSpring(TeamCityDataDirectoryManager dataDirectoryManager)booleanisEnabled()booleanisFetchedFromAcme()voidremoveAcmeOrder()voidremoveCertificateAsync()voidsaveAcmeOrder(AcmeOrder acmeOrder)Optional<String>setRedirectStrategy(HttpsRedirectStrategy newStrategy)voidshutdown()voidtryDisableHttps()voidtryEnableHttps()Optional<String>updateConfiguration(InputStream certificateStream, InputStream keyStream, int newPort)Optional<String>updateConfiguration(Collection<Certificate> certificateChain, PrivateKey key, int newPort, boolean fetchedFromAcme)
-
-
-
Field Detail
-
REQUIRED_USER_PERMISSION
static final Permission REQUIRED_USER_PERMISSION
-
HTTPS_CONFIG_DIR
static final Path HTTPS_CONFIG_DIR
-
-
Method Detail
-
isEnabled
boolean isEnabled()
-
isFetchedFromAcme
boolean isFetchedFromAcme()
-
getRedirectStrategy
HttpsRedirectStrategy getRedirectStrategy()
-
tryEnableHttps
void tryEnableHttps() throws HttpsConfigurationException- Throws:
HttpsConfigurationException
-
tryDisableHttps
void tryDisableHttps() throws HttpsConfigurationException- Throws:
HttpsConfigurationException
-
setRedirectStrategy
Optional<String> setRedirectStrategy(@NotNull HttpsRedirectStrategy newStrategy)
-
changePort
void changePort(int port) throws HttpsConfigurationException- Throws:
HttpsConfigurationException
-
initBeforeSpring
void initBeforeSpring(@NotNull TeamCityDataDirectoryManager dataDirectoryManager) throws HttpsConfigurationException- Throws:
HttpsConfigurationException
-
initAfterSpring
void initAfterSpring(@NotNull ExecutorServices executorService, @NotNull RootUrlHolder urlHolder)
-
shutdown
void shutdown()
-
getCertificate
@Nullable X509Certificate getCertificate()
-
getConfiguration
@NotNull HttpsConfiguration getConfiguration()
-
getHttpsRedirectUrl
@Nullable URL getHttpsRedirectUrl()
Returns current HTTPS redirect URL- Returns:
- HTTPS redirect URL. If Spring context is not yet initialized or URL is malformed returns null.
-
updateConfiguration
@NotNull Optional<String> updateConfiguration(@NotNull InputStream certificateStream, @NotNull InputStream keyStream, int newPort)
-
updateConfiguration
@NotNull Optional<String> updateConfiguration(@NotNull Collection<Certificate> certificateChain, @NotNull PrivateKey key, int newPort, boolean fetchedFromAcme)
-
saveAcmeOrder
void saveAcmeOrder(@NotNull AcmeOrder acmeOrder)
-
getPendingAcmeOrder
@Nullable AcmeOrder getPendingAcmeOrder()
-
removeAcmeOrder
void removeAcmeOrder()
-
removeCertificateAsync
void removeCertificateAsync() throws HttpsConfigurationException- Throws:
HttpsConfigurationException
-
-