Package org.opencms.site
Enum CmsSSLMode
- All Implemented Interfaces:
Serializable
,Comparable<CmsSSLMode>
,java.lang.constant.Constable
Enumeration for different SSL Modes of sites.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEncryption via Let's encrypt.Manual ssl configuration of server.Manual ssl configuration of server with endpoint termination.No encryption.Encryption via secure server (the old OpenCms way). -
Method Summary
Modifier and TypeMethodDescriptionstatic List<CmsSSLMode>
availableModes
(boolean includeOldStyle, boolean includeLetsEncrypt) List of all available modes.static CmsSSLMode
The default SSL Mode.Gets localized message.static CmsSSLMode
getModeFromXML
(String xmlValue) Gets CmsSSLMode from given XML value.Gets the XML value.boolean
isSecure()
Returns if SSL Mode is secure.static CmsSSLMode
Returns the enum constant of this type with the specified name.static CmsSSLMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NO
No encryption. -
MANUAL
Manual ssl configuration of server. -
MANUAL_EP_TERMINATION
Manual ssl configuration of server with endpoint termination. -
LETS_ENCRYPT
Encryption via Let's encrypt. -
SECURE_SERVER
Encryption via secure server (the old OpenCms way).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
availableModes
List of all available modes.- Parameters:
includeOldStyle
- include old Secure Server Styles?includeLetsEncrypt
- if true, include the LETS_ENCRYPT mode in the result- Returns:
- List
-- the list of available modes
-
getDefault
The default SSL Mode.- Returns:
- CmsSSLMode
-
getModeFromXML
Gets CmsSSLMode from given XML value.- Parameters:
xmlValue
- to get CmsSSLMode for- Returns:
- CmsSSLMode
-
getLocalizedMessage
Gets localized message.- Returns:
- localized message
-
getXMLValue
Gets the XML value.- Returns:
- the XML value
-
isSecure
Returns if SSL Mode is secure.- Returns:
- true if secure
-