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 booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanFields inherited from class com.shapesecurity.salvation2.Directives.HostSourceDirective
hosts, none, schemes, self, starFields 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) voidaddHash(Hash hash, Directive.ManipulationErrorConsumer errors) voidaddNonce(Nonce nonce, Directive.ManipulationErrorConsumer errors) booleanremoveHash(Hash hash) booleanremoveNonce(Nonce nonce) booleanvoidsetReportSample(boolean reportSample) voidsetStrictDynamic(boolean strictDynamic) voidsetUnsafeAllowRedirects(boolean unsafeAllowRedirects) voidsetUnsafeEval(boolean unsafeEval) voidsetUnsafeHashes(boolean unsafeHashes) voidsetUnsafeInline(boolean unsafeInline) booleanbooleanbooleanbooleanbooleanMethods inherited from class com.shapesecurity.salvation2.Directives.HostSourceDirective
_addHostOrSchemeDuringConstruction, addHost, addScheme, addValue, getHosts, getSchemes, removeHost, removeScheme, removeValueIgnoreCase, removeValuesMatching, self, setSelf, setStar, starMethods 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
-