Class WebConfiguration
- java.lang.Object
-
- com.jscape.inet.mft.management.descriptors.Configuration
-
- com.jscape.inet.mft.management.common.WebConfiguration
-
- All Implemented Interfaces:
com.jscape.util.db.IntVersioned,java.io.Serializable
public class WebConfiguration extends Configuration
Web server configuration.- Author:
- Alex
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longDEFAULT_HTTP_SESSION_TTL_MSDefault HTTP session time to live value 30 minstatic booleanDEFAULT_INCLUDE_SERVER_PORTDefault include server ports in HTTP/S headersstatic java.lang.StringDEFAULT_THEMEDefault theme name
-
Constructor Summary
Constructors Constructor Description WebConfiguration()This constructor is used by serialization sub-system and is not intended to use directly in client code.WebConfiguration(boolean httpEnabled, java.lang.String httpAddress, int httpPort, boolean httpsEnabled, java.lang.String httpsAddress, int httpsPort, java.lang.String keyAlias, boolean fipsModeRequired, java.lang.String[] excludedCiphers, java.lang.String[] enabledSslProtocols, boolean lostPasswordEnabled, boolean redirectHttp, boolean domainVisible, boolean domainDropdown, java.lang.String defaultDomain, boolean clientCertificateRequired, java.lang.String serverName, boolean includeServerPort, boolean sslRenegotiationAllowed, long httpSessionTtlMillis, boolean captchaRequired, com.jscape.inet.mft.management.common.StrictTransportSecurityPolicy strictTransportSecurityPolicy, boolean autoLoginAllowed, java.lang.String theme, int backlog)Creates a new configuration instance.WebConfiguration(WebConfiguration that)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description WebConfigurationcopy()booleanequals(java.lang.Object o)intgetBacklog()java.lang.StringgetDefaultDomain()Returns default domain.java.lang.String[]getEnabledSslProtocols()Returns enabled SSL protocols.java.lang.String[]getExcludedCiphers()Returns excluded SSL ciphers.java.lang.StringgetHttpAddress()Returns HTTP binding host/IP.intgetHttpPort()Returns HTTP binding port.java.lang.StringgetHttpsAddress()Returns HTTPS binding host/IP.longgetHttpSessionTtlMillis()Returns HTTP session time to live.intgetHttpsPort()Returns HTTPS binding port.java.lang.StringgetKeyAlias()Returns HTTPS key alias.java.lang.StringgetServerName()Returns the server name.com.jscape.inet.mft.management.common.StrictTransportSecurityPolicygetStrictTransportSecurityPolicy()Returns HTTP Strict Transport Security policy.java.lang.StringgetTheme()Returns web UI theme.booleanisAutoLoginAllowed()Returns Auto Login policybooleanisCaptchaRequired()Returns whether CAPTCHA will be displayed/requiredbooleanisClientCertificateRequired()Returns client certificate required flag.booleanisDomainDropdown()Return whether domain drop-down field instead of input field is displayed.booleanisDomainVisible()Returns whether domain name field is displayed.booleanisFipsModeRequired()booleanisHttpEnabled()Returns HTTP enabling flag.booleanisHttpsEnabled()Returns HTTPS enabling flag.booleanisIncludeServerPort()Returns include server port in HTTP/S headers flag.booleanisLostPasswordEnabled()Returns whether lost password link is displayed on login page.booleanisRedirectHttp()Returns HTTP-to-HTTPS redirection flag.booleanisSslRenegotiationAllowed()Returns SSL renegotiation allowed flag.booleanisUserInterfaceAllowed(int value)Deprecated.Support for Java applet removedbooleanisUserInterfaceSelectable()Deprecated.Support for Java applet removedvoidsetAutoLoginAllowed(boolean allowed)Sets Auto Login allowed.voidsetBacklog(int value)voidsetCaptchaRequired(boolean value)Sets to display/require CAPTCHA in web interface.voidsetClientCertificateRequired(boolean value)Sets client certificate required flag.voidsetDefaultDomain(java.lang.String domainName)Sets default domain namevoidsetDomainDropdown(boolean value)Sets whether domain drop-down filed should be displayed.voidsetDomainVisible(boolean value)Sets whether domain name field is displayed.voidsetEnabledSslProtocols(java.lang.String[] value)Sets enabled SSL protocols.voidsetExcludedCiphers(java.lang.String[] value)Sets excluded SSL ciphers.voidsetFipsModeRequired(boolean value)voidsetHttpAddress(java.lang.String value)Sets HTTP binding host/IP.voidsetHttpEnabled(boolean value)Sets HTTP enabling flag.voidsetHttpPort(int value)Sets HTTP binding port.voidsetHttpsAddress(java.lang.String value)Sets HTTPS binding host/IP.voidsetHttpsEnabled(boolean value)Sets HTTPS enabling flag.voidsetHttpSessionTtlMillis(long milliseconds)Sets HTTP session time to live.voidsetHttpsPort(int value)Sets HTTPS binding port.voidsetIncludeServerPort(boolean includeServerPort)Set whether to include server port in HTTP/S headers.voidsetKeyAlias(java.lang.String value)Sets HTTPS key alias.voidsetLostPasswordEnabled(boolean enabled)This will enable/disable whether lost password link is displayed on login page.voidsetRedirectHttp(boolean value)Sets HTTP-to-HTTPS redirection flag.voidsetServerName(java.lang.String serverName)Sets forced server name value.voidsetSslRenegotiationAllowed(boolean value)Sets SSL renegotiation flag.voidsetStrictTransportSecurityPolicy(com.jscape.inet.mft.management.common.StrictTransportSecurityPolicy transportSecurityConfiguration)Sets HTTP Strict Transport Security policy.voidsetTheme(java.lang.String theme)Sets web UI theme.java.lang.StringtoString()-
Methods inherited from class com.jscape.inet.mft.management.descriptors.Configuration
getVersion, setVersion
-
-
-
-
Field Detail
-
DEFAULT_HTTP_SESSION_TTL_MS
public static final long DEFAULT_HTTP_SESSION_TTL_MS
Default HTTP session time to live value 30 min- See Also:
- Constant Field Values
-
DEFAULT_INCLUDE_SERVER_PORT
public static final boolean DEFAULT_INCLUDE_SERVER_PORT
Default include server ports in HTTP/S headers- See Also:
- Constant Field Values
-
DEFAULT_THEME
public static final java.lang.String DEFAULT_THEME
Default theme name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebConfiguration
public WebConfiguration(boolean httpEnabled, java.lang.String httpAddress, int httpPort, boolean httpsEnabled, java.lang.String httpsAddress, int httpsPort, java.lang.String keyAlias, boolean fipsModeRequired, java.lang.String[] excludedCiphers, java.lang.String[] enabledSslProtocols, boolean lostPasswordEnabled, boolean redirectHttp, boolean domainVisible, boolean domainDropdown, java.lang.String defaultDomain, boolean clientCertificateRequired, java.lang.String serverName, boolean includeServerPort, boolean sslRenegotiationAllowed, long httpSessionTtlMillis, boolean captchaRequired, com.jscape.inet.mft.management.common.StrictTransportSecurityPolicy strictTransportSecurityPolicy, boolean autoLoginAllowed, java.lang.String theme, int backlog)Creates a new configuration instance.- Parameters:
httpEnabled- HTTP enabling flaghttpAddress- HTTP binding host/IPhttpPort- HTTP binding porthttpsEnabled- HTTPS enabling flaghttpsAddress- HTTPS binding host/porthttpsPort- HTTPS binding portkeyAlias- HTTPS key aliasexcludedCiphers- excluded SSL ciphersenabledSslProtocols- enabled SSL protocolslostPasswordEnabled- enabling whether lost password link is displayedredirectHttp- enabling HTTP-to-HTTPS redirectiondomainVisible- whether domain field is displayeddomainDropdown- whether domain drop-down field instead of input field is displayeddefaultDomain- default domain nameclientCertificateRequired- iftruethe client certificate is required for HTTPS connectionserverName- server nameincludeServerPort- whether to include server port in HTTP/S headers flagsslRenegotiationAllowed- allows SSL renegotiationhttpSessionTtlMillis- HTTP session time to live in secondscaptchaRequired- whether CAPTCHA will be displayed/requiredstrictTransportSecurityPolicy- HTTP Strict Transport Security policy configurationautoLoginAllowed- whether Auto Login is allowedtheme- web UI theme name
-
WebConfiguration
public WebConfiguration(WebConfiguration that)
-
WebConfiguration
public WebConfiguration()
This constructor is used by serialization sub-system and is not intended to use directly in client code.
-
-
Method Detail
-
isHttpEnabled
public boolean isHttpEnabled()
Returns HTTP enabling flag.- Returns:
- HTTP enabling flag
-
setHttpEnabled
public void setHttpEnabled(boolean value)
Sets HTTP enabling flag.- Parameters:
value- HTTP enabling flag
-
getHttpAddress
public java.lang.String getHttpAddress()
Returns HTTP binding host/IP.- Returns:
- HTTP binding host/IP
-
setHttpAddress
public void setHttpAddress(java.lang.String value)
Sets HTTP binding host/IP.- Parameters:
value- HTTP binding host/IP
-
getHttpPort
public int getHttpPort()
Returns HTTP binding port.- Returns:
- HTTP binding port
-
setHttpPort
public void setHttpPort(int value)
Sets HTTP binding port.- Parameters:
value- HTTP binding port
-
isHttpsEnabled
public boolean isHttpsEnabled()
Returns HTTPS enabling flag.- Returns:
- HTTPS enabling flag
-
setHttpsEnabled
public void setHttpsEnabled(boolean value)
Sets HTTPS enabling flag.- Parameters:
value- HTTPS enabling flag
-
getHttpsAddress
public java.lang.String getHttpsAddress()
Returns HTTPS binding host/IP.- Returns:
- HTTPS binding host/IP
-
setHttpsAddress
public void setHttpsAddress(java.lang.String value)
Sets HTTPS binding host/IP.- Parameters:
value- HTTPS binding host/IP
-
getHttpsPort
public int getHttpsPort()
Returns HTTPS binding port.- Returns:
- HTTPS binding port
-
setHttpsPort
public void setHttpsPort(int value)
Sets HTTPS binding port.- Parameters:
value- HTTPS binding port
-
getKeyAlias
public java.lang.String getKeyAlias()
Returns HTTPS key alias.- Returns:
- HTTPS key alias
-
setKeyAlias
public void setKeyAlias(java.lang.String value)
Sets HTTPS key alias.- Parameters:
value- HTTPS key alias
-
isFipsModeRequired
public boolean isFipsModeRequired()
-
setFipsModeRequired
public void setFipsModeRequired(boolean value)
-
getExcludedCiphers
public java.lang.String[] getExcludedCiphers()
Returns excluded SSL ciphers.- Returns:
- excluded SSL ciphers
-
setExcludedCiphers
public void setExcludedCiphers(java.lang.String[] value)
Sets excluded SSL ciphers.- Parameters:
value- excluded SSL ciphers
-
getEnabledSslProtocols
public java.lang.String[] getEnabledSslProtocols()
Returns enabled SSL protocols.- Returns:
- enabled SSL protocols
-
setEnabledSslProtocols
public void setEnabledSslProtocols(java.lang.String[] value)
Sets enabled SSL protocols.- Parameters:
value- enabled SSL protocols
-
isLostPasswordEnabled
public boolean isLostPasswordEnabled()
Returns whether lost password link is displayed on login page.- Returns:
truelost pasword link displayed;falseotherwise.
-
setLostPasswordEnabled
public void setLostPasswordEnabled(boolean enabled)
This will enable/disable whether lost password link is displayed on login page.- Parameters:
enabled-trueenable lost password link;falseotherwise.
-
isRedirectHttp
public boolean isRedirectHttp()
Returns HTTP-to-HTTPS redirection flag.- Returns:
trueif HTTP-to-HTTPS redirection is enabled;falseotherwise
-
setRedirectHttp
public void setRedirectHttp(boolean value)
Sets HTTP-to-HTTPS redirection flag.- Parameters:
value- iftrueHTTP-to-HTTPS redirection will be enabled
-
isDomainVisible
public boolean isDomainVisible()
Returns whether domain name field is displayed.- Returns:
trueif domain field is displayed;falseotherwise.
-
setDomainVisible
public void setDomainVisible(boolean value)
Sets whether domain name field is displayed.- Parameters:
value- iftruedomain field will be displayed
-
isDomainDropdown
public boolean isDomainDropdown()
Return whether domain drop-down field instead of input field is displayed.- Returns:
trueif drop-down field is displayed
-
setDomainDropdown
public void setDomainDropdown(boolean value)
Sets whether domain drop-down filed should be displayed.- Parameters:
value- iftruedomain drop-down field will be displayed
-
getDefaultDomain
public java.lang.String getDefaultDomain()
Returns default domain.- Returns:
- the default domain name
-
setDefaultDomain
public void setDefaultDomain(java.lang.String domainName)
Sets default domain name- Parameters:
domainName- the domain name
-
isClientCertificateRequired
public boolean isClientCertificateRequired()
Returns client certificate required flag.- Returns:
trueif client certificate is required for HTTPS connection;falseotherwise
-
setClientCertificateRequired
public void setClientCertificateRequired(boolean value)
Sets client certificate required flag.- Parameters:
value- iftruethe client certificate will be required for HTTPS connection
-
getServerName
public java.lang.String getServerName()
Returns the server name.- Returns:
- the server name
-
setServerName
public void setServerName(java.lang.String serverName)
Sets forced server name value.- Parameters:
serverName- the server name
-
isIncludeServerPort
public boolean isIncludeServerPort()
Returns include server port in HTTP/S headers flag.- Returns:
trueif server port will be included;falseotherwise
-
setIncludeServerPort
public void setIncludeServerPort(boolean includeServerPort)
Set whether to include server port in HTTP/S headers.- Parameters:
includeServerPort- iftruethe server port will be included
-
isUserInterfaceAllowed
@Deprecated public boolean isUserInterfaceAllowed(int value)
Deprecated.Support for Java applet removedChecks if specified user interface type is allowed.- Parameters:
value- user interface type- Returns:
true
-
isUserInterfaceSelectable
@Deprecated public boolean isUserInterfaceSelectable()
Deprecated.Support for Java applet removedReturntrueif user interface is selectable.- Returns:
false
-
isSslRenegotiationAllowed
public boolean isSslRenegotiationAllowed()
Returns SSL renegotiation allowed flag.- Returns:
trueif SSL renegotiation is allowed;falseotherwise
-
setSslRenegotiationAllowed
public void setSslRenegotiationAllowed(boolean value)
Sets SSL renegotiation flag.- Parameters:
value- iftruethe SSL renegotiation will be allowed
-
getHttpSessionTtlMillis
public long getHttpSessionTtlMillis()
Returns HTTP session time to live.- Returns:
- HTTP session time to live in milliseconds
-
setHttpSessionTtlMillis
public void setHttpSessionTtlMillis(long milliseconds)
Sets HTTP session time to live.- Parameters:
milliseconds- HTTP session time to live in milliseconds
-
isCaptchaRequired
public boolean isCaptchaRequired()
Returns whether CAPTCHA will be displayed/required- Returns:
trueCAPTCHA will be displayed/required;falseotherwise
-
setCaptchaRequired
public void setCaptchaRequired(boolean value)
Sets to display/require CAPTCHA in web interface.- Parameters:
value- ittrueCAPTCHA will be displayed/required
-
getStrictTransportSecurityPolicy
public com.jscape.inet.mft.management.common.StrictTransportSecurityPolicy getStrictTransportSecurityPolicy()
Returns HTTP Strict Transport Security policy.- Returns:
- the HSTS policy or null if disabled
-
setStrictTransportSecurityPolicy
public void setStrictTransportSecurityPolicy(com.jscape.inet.mft.management.common.StrictTransportSecurityPolicy transportSecurityConfiguration)
Sets HTTP Strict Transport Security policy.- Parameters:
transportSecurityConfiguration- the HSTS policy; or null if disabled
-
getTheme
public java.lang.String getTheme()
Returns web UI theme.- Returns:
- the theme name
-
setTheme
public void setTheme(java.lang.String theme)
Sets web UI theme.- Parameters:
theme- the theme name
-
isAutoLoginAllowed
public boolean isAutoLoginAllowed()
Returns Auto Login policy- Returns:
- true if allowed; or false otherwise
- See Also:
- Performing automatic login
-
setAutoLoginAllowed
public void setAutoLoginAllowed(boolean allowed)
Sets Auto Login allowed.- Parameters:
allowed- true if allowed; or false otherwise- See Also:
- Performing automatic login
-
getBacklog
public int getBacklog()
-
setBacklog
public void setBacklog(int value)
-
copy
public WebConfiguration copy()
- Specified by:
copyin classConfiguration
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-