public interface SSLConfigurationService
SSLConfigurationServiceallows verifying whether a valid SSL configuration is present.
|Modifier and Type||Field and Description|
The name of the alias under which key and certificate are stored in the key store.
The id of the service user holding the key store.
static final java.lang.String SSL_SERVICE_USER_ID
static final java.lang.String KEYSTORE_ALIAS
boolean isSSLConfigured(ResourceResolver resolver) throws java.lang.SecurityException
SSL_SERVICE_USER_IDnormally) from the Granite SSL Connector Factory configuration exists and its key store contains a valid private key and certificate (chain) under the correct alias (
SSLConfigurationServiceis able to perform an HTTPS request upon its own instance and the return code is <400 or 401. Note: invalid (i.e. self-signed) SSL certificates are silently accepted. Note: The hostname to connect to is derived from the Sling Topology local endpoint property.
resolver- The admin-user resource resolver to access configuration and key store.
trueif the SSL configuration is present and valid.
java.lang.SecurityException- If the resolver is not the one of the admin user.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"