Class SSLControllerImpl
java.lang.Object
org.eblocker.server.http.server.SessionContextController
org.eblocker.server.http.controller.impl.SSLControllerImpl
- All Implemented Interfaces:
SSLController
Controller for SSL settings.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSSLControllerImpl(SslService sslService, SSLWhitelistService whitelistDomainStore, SslCertificateClientInstallationTracker tracker, DeviceService deviceService, SessionStore sessionStore, PageContextStore pageContextStore, UserService userService, ParentalControlService parentalControlService, SquidWarningService squidWarningService, FailedConnectionSuggestionService failedConnectionSuggestionService, NetworkStateMachine networkStateMachine, com.fasterxml.jackson.databind.ObjectMapper objectMapper, UserAgentService userAgentService, AutoTrustAppService autoTrustAppService) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUrlToSSLWhitelist(org.restexpress.Request request, org.restexpress.Response resp) booleanareCertificatesReady(org.restexpress.Request request, org.restexpress.Response response) Is the process of creating the root CA certificate and the webserver certificate finished?voidclearFailedConnections(org.restexpress.Request request, org.restexpress.Response response) createNewRootCA(org.restexpress.Request request, org.restexpress.Response response) booleangetAutoTrustAppState(org.restexpress.Request request, org.restexpress.Response response) io.netty.buffer.ByteBufgetCACertificateByteStream(org.restexpress.Request request, org.restexpress.Response response) Download the CA certificate in order to install it in the browser or system; and enable ssl for the requesting device automaticallyio.netty.buffer.ByteBufgetCACertificateByteStreamForFirefox(org.restexpress.Request request, org.restexpress.Response response) Download the CA certificate in order to install it in the browser or system; and enable ssl for the requesting device automaticallygetDefaultCaOptions(org.restexpress.Request request, org.restexpress.Response response) booleangetDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) getErrorRecordingEnabled(org.restexpress.Request request, org.restexpress.Response response) getFailedConnections(org.restexpress.Request request, org.restexpress.Response response) io.netty.buffer.ByteBufgetRenewalCertificateByteStream(org.restexpress.Request request, org.restexpress.Response response) Download the renewal certificate in order to install it in the browser or system; and enable ssl for the requesting device automaticallyio.netty.buffer.ByteBufgetRenewalCertificateByteStreamForFirefox(org.restexpress.Request request, org.restexpress.Response response) getRootCaCertificate(org.restexpress.Request request, org.restexpress.Response response) getSslDashboardStatus(org.restexpress.Request request, org.restexpress.Response response) booleangetSSLState(org.restexpress.Request request, org.restexpress.Response response) voidmarkCertificateStatus(org.restexpress.Request request, org.restexpress.Response response) removeAllWhitelistedUrl(org.restexpress.Request request, org.restexpress.Response resp) voidremoveWhitelistedUrl(org.restexpress.Request request, org.restexpress.Response resp) booleansetAutoTrustAppState(org.restexpress.Request request, org.restexpress.Response response) booleansetDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) setErrorRecordingEnabled(org.restexpress.Request request, org.restexpress.Response response) voidsetSSLState(org.restexpress.Request request, org.restexpress.Response response) Methods inherited from class org.eblocker.server.http.server.SessionContextController
getPageContext, getPageContext, getSession, isPageContextValid
-
Constructor Details
-
SSLControllerImpl
@Inject public SSLControllerImpl(SslService sslService, SSLWhitelistService whitelistDomainStore, SslCertificateClientInstallationTracker tracker, DeviceService deviceService, SessionStore sessionStore, PageContextStore pageContextStore, UserService userService, ParentalControlService parentalControlService, SquidWarningService squidWarningService, FailedConnectionSuggestionService failedConnectionSuggestionService, NetworkStateMachine networkStateMachine, com.fasterxml.jackson.databind.ObjectMapper objectMapper, UserAgentService userAgentService, AutoTrustAppService autoTrustAppService)
-
-
Method Details
-
getCACertificateByteStream
public io.netty.buffer.ByteBuf getCACertificateByteStream(org.restexpress.Request request, org.restexpress.Response response) throws IOException Download the CA certificate in order to install it in the browser or system; and enable ssl for the requesting device automatically- Specified by:
getCACertificateByteStreamin interfaceSSLController- Throws:
IOException
-
getCACertificateByteStreamForFirefox
public io.netty.buffer.ByteBuf getCACertificateByteStreamForFirefox(org.restexpress.Request request, org.restexpress.Response response) throws IOException Download the CA certificate in order to install it in the browser or system; and enable ssl for the requesting device automatically- Specified by:
getCACertificateByteStreamForFirefoxin interfaceSSLController- Throws:
IOException
-
getRenewalCertificateByteStreamForFirefox
public io.netty.buffer.ByteBuf getRenewalCertificateByteStreamForFirefox(org.restexpress.Request request, org.restexpress.Response response) throws IOException - Specified by:
getRenewalCertificateByteStreamForFirefoxin interfaceSSLController- Throws:
IOException
-
getRenewalCertificateByteStream
public io.netty.buffer.ByteBuf getRenewalCertificateByteStream(org.restexpress.Request request, org.restexpress.Response response) throws IOException Download the renewal certificate in order to install it in the browser or system; and enable ssl for the requesting device automatically- Specified by:
getRenewalCertificateByteStreamin interfaceSSLController- Throws:
IOException
-
areCertificatesReady
public boolean areCertificatesReady(org.restexpress.Request request, org.restexpress.Response response) Is the process of creating the root CA certificate and the webserver certificate finished? Can we download the root CA certificate to the clients?- Specified by:
areCertificatesReadyin interfaceSSLController
-
setAutoTrustAppState
public boolean setAutoTrustAppState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setAutoTrustAppStatein interfaceSSLController
-
getAutoTrustAppState
public boolean getAutoTrustAppState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getAutoTrustAppStatein interfaceSSLController
-
setSSLState
public void setSSLState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setSSLStatein interfaceSSLController
-
getSSLState
public boolean getSSLState(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getSSLStatein interfaceSSLController
-
removeWhitelistedUrl
public void removeWhitelistedUrl(org.restexpress.Request request, org.restexpress.Response resp) - Specified by:
removeWhitelistedUrlin interfaceSSLController
-
removeAllWhitelistedUrl
public Integer removeAllWhitelistedUrl(org.restexpress.Request request, org.restexpress.Response resp) - Specified by:
removeAllWhitelistedUrlin interfaceSSLController
-
addUrlToSSLWhitelist
public void addUrlToSSLWhitelist(org.restexpress.Request request, org.restexpress.Response resp) - Specified by:
addUrlToSSLWhitelistin interfaceSSLController
-
markCertificateStatus
public void markCertificateStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
markCertificateStatusin interfaceSSLController
-
createNewRootCA
public Certificate createNewRootCA(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
createNewRootCAin interfaceSSLController
-
getDefaultCaOptions
public CaOptions getDefaultCaOptions(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getDefaultCaOptionsin interfaceSSLController
-
getRootCaCertificate
public Certificate getRootCaCertificate(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getRootCaCertificatein interfaceSSLController
-
getDeviceStatus
public boolean getDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getDeviceStatusin interfaceSSLController
-
setDeviceStatus
public boolean setDeviceStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setDeviceStatusin interfaceSSLController
-
getSslDashboardStatus
public DashboardSslStatus getSslDashboardStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getSslDashboardStatusin interfaceSSLController
-
getFailedConnections
public Suggestions getFailedConnections(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getFailedConnectionsin interfaceSSLController
-
clearFailedConnections
public void clearFailedConnections(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
clearFailedConnectionsin interfaceSSLController
-
getErrorRecordingEnabled
public Map<String,Boolean> getErrorRecordingEnabled(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getErrorRecordingEnabledin interfaceSSLController
-
setErrorRecordingEnabled
public Map<String,Boolean> setErrorRecordingEnabled(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setErrorRecordingEnabledin interfaceSSLController
-