Enum Class CspDirective

java.lang.Object
java.lang.Enum<CspDirective>
ro.sync.exml.plugin.workspace.security.CspDirective
All Implemented Interfaces:
Serializable, Comparable<CspDirective>, Constable

@API(type=NOT_EXTENDABLE, src=PUBLIC) public enum CspDirective extends Enum<CspDirective>
Enum for Content Security Policy (CSP) directives. These directives control various resource types that can be loaded or executed in the context of a web page.
Since:
26.1.1

*********************************
EXPERIMENTAL - Subject to change
********************************

Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.

See Also:
  • Enum Constant Details

    • DEFAULT_SRC

      public static final CspDirective DEFAULT_SRC
      Defines the default policy for fetching resources such as JavaScript, Images, CSS, Fonts, AJAX requests, Frames, HTML5 Media.
    • SCRIPT_SRC

      public static final CspDirective SCRIPT_SRC
      Specifies valid sources for JavaScript.
    • STYLE_SRC

      public static final CspDirective STYLE_SRC
      Specifies valid sources for stylesheets.
    • IMG_SRC

      public static final CspDirective IMG_SRC
      Specifies valid sources of images.
    • CONNECT_SRC

      public static final CspDirective CONNECT_SRC
      Specifies valid sources for AJAX, WebSockets, and EventSource.
    • FONT_SRC

      public static final CspDirective FONT_SRC
      Specifies valid sources for fonts loaded using font-face.
    • OBJECT_SRC

      public static final CspDirective OBJECT_SRC
      Specifies valid sources for the <object>, <embed>, and <applet> elements.
    • MEDIA_SRC

      public static final CspDirective MEDIA_SRC
      Specifies valid sources of audio and video.
    • FRAME_SRC

      public static final CspDirective FRAME_SRC
      Specifies valid sources for <iframe> and <frame> elements.
    • SANDBOX

      public static final CspDirective SANDBOX
      Applies extra restrictions to the content security policy of the page. Values are boolean flags (e.g., 'allow-forms', 'allow-scripts').
  • Method Details

    • values

      public static CspDirective[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CspDirective valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null