Package org.htmlunit.csp.directive
Class SourceExpressionDirective
java.lang.Object
org.htmlunit.csp.Directive
org.htmlunit.csp.directive.HostSourceDirective
org.htmlunit.csp.directive.SourceExpressionDirective
-
Nested Class Summary
Nested classes/interfaces inherited from class org.htmlunit.csp.Directive
Directive.DirectiveErrorConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private boolean
private static final String
private boolean
private static final String
private static final String
private static final String
private static final String
private boolean
private boolean
private boolean
private boolean
private boolean
private static final String
Fields inherited from class org.htmlunit.csp.Directive
containsNonDirectiveCharacter, IS_DIRECTIVE_NAME
-
Constructor Summary
ConstructorsConstructorDescriptionSourceExpressionDirective
(List<String> values, Directive.DirectiveErrorConsumer errors) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
addHash
(Hash hash, int index, Directive.DirectiveErrorConsumer errors) private boolean
addNonce
(Nonce nonce, int index, Directive.DirectiveErrorConsumer errors) boolean
boolean
boolean
boolean
boolean
boolean
Methods inherited from class org.htmlunit.csp.directive.HostSourceDirective
addHostOrSchemeDuringConstruction, addValue, getHosts, getNone, getSchemes, removeValueIgnoreCase, self, star
-
Field Details
-
REPORT_SAMPLE
- See Also:
-
UNSAFE_INLINE
- See Also:
-
STRICT_DYNAMIC
- See Also:
-
UNSAFE_ALLOW_REDIRECTS
- See Also:
-
UNSAFE_EVAL
- See Also:
-
UNSAFE_HASHES
- See Also:
-
WASM_UNSAFE_EVAL
- See Also:
-
unsafeInline_
private boolean unsafeInline_ -
unsafeEval_
private boolean unsafeEval_ -
strictDynamic_
private boolean strictDynamic_ -
unsafeHashes_
private boolean unsafeHashes_ -
reportSample_
private boolean reportSample_ -
unsafeAllowRedirects_
private boolean unsafeAllowRedirects_ -
unsafeWasm_
private boolean unsafeWasm_ -
nonces_
-
hashes_
-
-
Constructor Details
-
SourceExpressionDirective
-
-
Method Details
-
addNonce
-
addHash
-
unsafeInline
public boolean unsafeInline() -
unsafeEval
public boolean unsafeEval() -
strictDynamic
public boolean strictDynamic() -
unsafeHashes
public boolean unsafeHashes() -
reportSample
public boolean reportSample() -
unsafeAllowRedirects
public boolean unsafeAllowRedirects() -
getNonces
-
getHashes
-