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 Stringprivate booleanprivate static final Stringprivate booleanprivate static final Stringprivate static final Stringprivate static final Stringprivate static final Stringprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate static final StringFields 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 booleanaddHash(Hash hash, int index, Directive.DirectiveErrorConsumer errors) private booleanaddNonce(Nonce nonce, int index, Directive.DirectiveErrorConsumer errors) booleanbooleanbooleanbooleanbooleanbooleanMethods 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
-