public interface IWebServerPortConfig
Modifier and Type | Method and Description |
---|---|
String |
getBindAddress()
Gets the bind address.
|
String |
getDescription()
Gets the description of the port configuration.
|
String[] |
getExcludedSecureProtocols()
Gets the excluded secure protocols.
|
KeyStore |
getKeyStore()
Gets the KeyStore from a PKCS#12 identity property and password.
|
KeyStore |
getKeyStore(StringBuilder pwReturn)
Gets the KeyStore from a PKCS#12 identity property and password.
|
String |
getKeyStorePassword()
Gets the KeyStore password.
|
String |
getLetsEncryptDomainNames()
Gets the Let's Encrypt domain name(s) associated with this port configuration.
|
Set<String> |
getLetsEncryptDomainNamesSet()
Gets a new set of Let's Encrypt domain name(s) associated with this port configuration.
|
String |
getPortDescription()
Gets the description of the port configuration.
|
int |
getPortEnd()
Gets the port end in a range.
|
int |
getPortStart()
Gets the port start in a range.
|
<T> T |
getProperty(String name,
Class<T> propClass)
Gets a runtime property based on a HashMap.
|
int |
getProtocol()
Gets the protocol to use.
|
String |
getType()
Gets the type of port: HTTP or HTTPS.
|
boolean |
isFrontEndSecured()
Returns if the connection is secure by means of a front-end
proxy, load balancer, etc.
|
void |
setConfig(PortConfig config)
Sets the Jetty server connector configuration used with this configuration.
|
<T> T |
setProperty(String name,
T property,
Class<T> propClass)
Sets a runtime property based on a HashMap.
|
String getType()
String getDescription()
String getPortDescription()
int getPortStart()
int getPortEnd()
int getProtocol()
boolean isFrontEndSecured()
String getBindAddress()
String getKeyStorePassword()
KeyStore getKeyStore() throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, UnrecoverableEntryException
KeyStoreException
- If no Provider supports a KeyStoreSpi implementation for the PKCS#12 type.NoSuchAlgorithmException
- If the algorithm used to check the integrity of the KeyStore cannot be found.CertificateException
- If any of the certificates in the KeyStore could not be loaded or the Let's Encrypt domain was not found
and this configuration is associated with Let's Encrypt.IOException
- If there is an I/O or format problem with the KeyStore data, if a password is required but not given,
or if the given password was incorrect. If the error is due to a wrong password, the cause of
the IOException should be an UnrecoverableKeyException.UnrecoverableEntryException
- For errors in keystore.KeyStore getKeyStore(StringBuilder pwReturn) throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException, UnrecoverableEntryException
pwReturn
- A StringBuilder instance that is filled with the password, null for none.KeyStoreException
- If no Provider supports a KeyStoreSpi implementation for the PKCS#12 type.NoSuchAlgorithmException
- If the algorithm used to check the integrity of the KeyStore cannot be found.CertificateException
- If any of the certificates in the KeyStore could not be loaded or the Let's Encrypt domain was not found
and this configuration is associated with Let's Encrypt.IOException
- If there is an I/O or format problem with the KeyStore data, if a password is required but not given,
or if the given password was incorrect. If the error is due to a wrong password, the cause of
the IOException should be an UnrecoverableKeyException.UnrecoverableEntryException
- For errors in keystore.<T> T setProperty(String name, T property, Class<T> propClass) throws ClassCastException
name
- The property name.property
- The property, or null to remove it.propClass
- The class of the property to return if replaced.ClassCastException
- If the object is not null and is not assignable to the type T.<T> T getProperty(String name, Class<T> propClass) throws ClassCastException
name
- The property name.propClass
- The class of the property to return if replaced.ClassCastException
- If the object is not null and is not assignable to the type T.String getLetsEncryptDomainNames()
Set<String> getLetsEncryptDomainNamesSet()
void setConfig(PortConfig config)
config
- The configuration instance.String[] getExcludedSecureProtocols()
iizi® is a registered trademark of Mindus SARL. © Copyright Mindus SARL, 2020. All rights reserved.