Enum CmsSSLMode

java.lang.Object
java.lang.Enum<CmsSSLMode>
org.opencms.site.CmsSSLMode
All Implemented Interfaces:
Serializable, Comparable<CmsSSLMode>, java.lang.constant.Constable

public enum CmsSSLMode extends Enum<CmsSSLMode>
Enumeration for different SSL Modes of sites.

  • Enum Constant Details

  • Method Details

    • values

      public static CmsSSLMode[] 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

      public static CmsSSLMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • availableModes

      public static List<CmsSSLMode> availableModes(boolean includeOldStyle, boolean includeLetsEncrypt)
      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

      public static CmsSSLMode getDefault()
      The default SSL Mode.

      Returns:
      CmsSSLMode
    • getModeFromXML

      public static CmsSSLMode getModeFromXML(String xmlValue)
      Gets CmsSSLMode from given XML value.

      Parameters:
      xmlValue - to get CmsSSLMode for
      Returns:
      CmsSSLMode
    • getLocalizedMessage

      Gets localized message.

      Returns:
      localized message
    • getXMLValue

      public String getXMLValue()
      Gets the XML value.

      Returns:
      the XML value
    • isSecure

      public boolean isSecure()
      Returns if SSL Mode is secure.

      Returns:
      true if secure