Class SourceExpressionDirective
java.lang.Object
com.shapesecurity.salvation2.Directive
com.shapesecurity.salvation2.Directives.HostSourceDirective
com.shapesecurity.salvation2.Directives.SourceExpressionDirective
-
Nested Class Summary
Nested classes/interfaces inherited from class com.shapesecurity.salvation2.Directive
Directive.DirectiveErrorConsumer, Directive.ManipulationErrorConsumer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private boolean
private boolean
private boolean
Fields inherited from class com.shapesecurity.salvation2.Directives.HostSourceDirective
hosts, none, schemes, self, star
Fields inherited from class com.shapesecurity.salvation2.Directive
containsNonDirectiveCharacter, values
-
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) void
addHash
(Hash hash, Directive.ManipulationErrorConsumer errors) void
addNonce
(Nonce nonce, Directive.ManipulationErrorConsumer errors) boolean
removeHash
(Hash hash) boolean
removeNonce
(Nonce nonce) boolean
void
setReportSample
(boolean reportSample) void
setStrictDynamic
(boolean strictDynamic) void
setUnsafeAllowRedirects
(boolean unsafeAllowRedirects) void
setUnsafeEval
(boolean unsafeEval) void
setUnsafeHashes
(boolean unsafeHashes) void
setUnsafeInline
(boolean unsafeInline) boolean
boolean
boolean
boolean
boolean
Methods inherited from class com.shapesecurity.salvation2.Directives.HostSourceDirective
_addHostOrSchemeDuringConstruction, addHost, addScheme, addValue, getHosts, getSchemes, removeHost, removeScheme, removeValueIgnoreCase, removeValuesMatching, self, setSelf, setStar, star
Methods inherited from class com.shapesecurity.salvation2.Directive
getValues, wrapManipulationErrorConsumer
-
Field Details
-
unsafeInline
private boolean unsafeInline -
unsafeEval
private boolean unsafeEval -
strictDynamic
private boolean strictDynamic -
unsafeHashes
private boolean unsafeHashes -
reportSample
private boolean reportSample -
unsafeAllowRedirects
private boolean unsafeAllowRedirects -
nonces
-
hashes
-
-
Constructor Details
-
SourceExpressionDirective
-
-
Method Details
-
_addNonce
-
_addHash
-
unsafeInline
public boolean unsafeInline() -
setUnsafeInline
public void setUnsafeInline(boolean unsafeInline) -
unsafeEval
public boolean unsafeEval() -
setUnsafeEval
public void setUnsafeEval(boolean unsafeEval) -
strictDynamic
public boolean strictDynamic() -
setStrictDynamic
public void setStrictDynamic(boolean strictDynamic) -
unsafeHashes
public boolean unsafeHashes() -
setUnsafeHashes
public void setUnsafeHashes(boolean unsafeHashes) -
reportSample
public boolean reportSample() -
setReportSample
public void setReportSample(boolean reportSample) -
unsafeAllowRedirects
public boolean unsafeAllowRedirects() -
setUnsafeAllowRedirects
public void setUnsafeAllowRedirects(boolean unsafeAllowRedirects) -
getNonces
-
addNonce
-
removeNonce
-
getHashes
-
addHash
-
removeHash
-