Class ServerConfigHostCsp


  • public class ServerConfigHostCsp
    extends Object
    The `csp` element allows you to set a content security policy (https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP) for the server portal page.
    • Constructor Detail

      • ServerConfigHostCsp

        public ServerConfigHostCsp()
    • Method Detail

      • getEnabled

        @Nullable
        public @Nullable Boolean getEnabled()
        When set to true, the CSP is activated. The HTTP header \"Content-Security-Policy\" is added, and a \"nonce\" is added to the required resources.
        Returns:
        enabled
      • setEnabled

        public void setEnabled​(Boolean enabled)
      • getHeaderValue

        @Nullable
        public @Nullable String getHeaderValue()
        Defines the value for the HTTP header `Content-Security-Policy`. Use `${nonce}` to insert a nonce value from the server for the entry `'nonce-...'`.
        Returns:
        headerValue
      • setHeaderValue

        public void setHeaderValue​(String headerValue)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object