Class AuthorizationServerProperties.ContentSecurityPolicyProperties
java.lang.Object
com.broadleafcommerce.auth.user.autoconfigure.AuthorizationServerProperties.ContentSecurityPolicyProperties
- Enclosing class:
- AuthorizationServerProperties
Properties configuring the behavior of
ContentSecurityPolicyConfigurer
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the configuration for a particular 'directive' (ex: should 'default-src' be provided, and what should its value be?). -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Additional directives that should be added to the content security policy header.Configures the 'base-uri' content security policy directive.Configures the 'default-src' content security policy directive.Configures the 'form-action' content security policy directive.Configures the 'frame-ancestors' content security policy directive.int
hashCode()
boolean
Whether or not to enable content security policy behavior.void
setAdditionalDirectives
(List<String> additionalDirectives) Additional directives that should be added to the content security policy header.void
Configures the 'base-uri' content security policy directive.void
setDefaultSrc
(AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue defaultSrc) Configures the 'default-src' content security policy directive.void
setEnabled
(boolean enabled) Whether or not to enable content security policy behavior.void
setFormAction
(AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue formAction) Configures the 'form-action' content security policy directive.void
setFrameAncestors
(AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue frameAncestors) Configures the 'frame-ancestors' content security policy directive.toString()
-
Constructor Details
-
ContentSecurityPolicyProperties
public ContentSecurityPolicyProperties()
-
-
Method Details
-
isEnabled
public boolean isEnabled()Whether or not to enable content security policy behavior. -
getDefaultSrc
Configures the 'default-src' content security policy directive. Defaults to 'self'. -
getBaseUri
Configures the 'base-uri' content security policy directive. Defaults to 'self'. -
getFrameAncestors
public AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue getFrameAncestors()Configures the 'frame-ancestors' content security policy directive. Defaults to 'self'. -
getFormAction
Configures the 'form-action' content security policy directive. Defaults to 'self'. -
getAdditionalDirectives
Additional directives that should be added to the content security policy header. This must include both the directive name and the value. This will automatically be combined in the final result with a semicolon separator. -
setEnabled
public void setEnabled(boolean enabled) Whether or not to enable content security policy behavior. -
setDefaultSrc
public void setDefaultSrc(AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue defaultSrc) Configures the 'default-src' content security policy directive. Defaults to 'self'. -
setBaseUri
public void setBaseUri(AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue baseUri) Configures the 'base-uri' content security policy directive. Defaults to 'self'. -
setFrameAncestors
public void setFrameAncestors(AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue frameAncestors) Configures the 'frame-ancestors' content security policy directive. Defaults to 'self'. -
setFormAction
public void setFormAction(AuthorizationServerProperties.ContentSecurityPolicyProperties.DirectiveValue formAction) Configures the 'form-action' content security policy directive. Defaults to 'self'. -
setAdditionalDirectives
Additional directives that should be added to the content security policy header. This must include both the directive name and the value. This will automatically be combined in the final result with a semicolon separator. -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-