Package jetbrains.buildServer.https
Interface HttpsConfigurator
-
- All Known Implementing Classes:
FakeHttpsConfigurator
,HttpsConfiguratorImpl
public interface HttpsConfigurator
-
-
Field Summary
Fields Modifier and Type Field Description static Path
HTTPS_CONFIG_DIR
static Permission
REQUIRED_USER_PERMISSION
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
changePort(int port)
X509Certificate
getCertificate()
HttpsConfiguration
getConfiguration()
URL
getHttpsRedirectUrl()
Returns current HTTPS redirect URLAcmeOrder
getPendingAcmeOrder()
HttpsRedirectStrategy
getRedirectStrategy()
void
initAfterSpring(ExecutorServices executorService, RootUrlHolder urlHolder)
void
initBeforeSpring(TeamCityDataDirectoryManager dataDirectoryManager)
boolean
isEnabled()
boolean
isFetchedFromAcme()
void
removeAcmeOrder()
void
removeCertificateAsync()
void
saveAcmeOrder(AcmeOrder acmeOrder)
Optional<String>
setRedirectStrategy(HttpsRedirectStrategy newStrategy)
void
shutdown()
void
tryDisableHttps()
void
tryEnableHttps()
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
-
-