Class SandboxDirective
java.lang.Object
com.shapesecurity.salvation2.Directive
com.shapesecurity.salvation2.Directives.SandboxDirective
-
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
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
Fields inherited from class com.shapesecurity.salvation2.Directive
containsNonDirectiveCharacter, values
-
Constructor Summary
ConstructorsConstructorDescriptionSandboxDirective
(List<String> values, Directive.DirectiveErrorConsumer errors) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setAllowDownloads
(boolean allowDownloads) void
setAllowForms
(boolean allowForms) void
setAllowModals
(boolean allowModals) void
setAllowOrientationLock
(boolean allowOrientationLock) void
setAllowPointerLock
(boolean allowPointerLock) void
setAllowPopups
(boolean allowPopups) void
setAllowPopupsToEscapeSandbox
(boolean allowPopupsToEscapeSandbox) void
setAllowPresentation
(boolean allowPresentation) void
setAllowSameOrigin
(boolean allowSameOrigin) void
setAllowScripts
(boolean allowScripts) void
setAllowStorageAccessByUserActivation
(boolean allowStorageAccessByUserActivation) void
setAllowTopNavigation
(boolean allowTopNavigation) void
setAllowTopNavigationByUserActivation
(boolean allowTopNavigationByUserActivation) Methods inherited from class com.shapesecurity.salvation2.Directive
addValue, getValues, removeValueIgnoreCase, wrapManipulationErrorConsumer
-
Field Details
-
allowDownloads
private boolean allowDownloads -
allowForms
private boolean allowForms -
allowModals
private boolean allowModals -
allowOrientationLock
private boolean allowOrientationLock -
allowPointerLock
private boolean allowPointerLock -
allowPopups
private boolean allowPopups -
allowPopupsToEscapeSandbox
private boolean allowPopupsToEscapeSandbox -
allowPresentation
private boolean allowPresentation -
allowSameOrigin
private boolean allowSameOrigin -
allowScripts
private boolean allowScripts -
allowStorageAccessByUserActivation
private boolean allowStorageAccessByUserActivation
-
-
Constructor Details
-
SandboxDirective
-
-
Method Details
-
allowDownloads
public boolean allowDownloads() -
setAllowDownloads
public void setAllowDownloads(boolean allowDownloads) -
allowForms
public boolean allowForms() -
setAllowForms
public void setAllowForms(boolean allowForms) -
allowModals
public boolean allowModals() -
setAllowModals
public void setAllowModals(boolean allowModals) -
allowOrientationLock
public boolean allowOrientationLock() -
setAllowOrientationLock
public void setAllowOrientationLock(boolean allowOrientationLock) -
allowPointerLock
public boolean allowPointerLock() -
setAllowPointerLock
public void setAllowPointerLock(boolean allowPointerLock) -
allowPopups
public boolean allowPopups() -
setAllowPopups
public void setAllowPopups(boolean allowPopups) -
allowPopupsToEscapeSandbox
public boolean allowPopupsToEscapeSandbox() -
setAllowPopupsToEscapeSandbox
public void setAllowPopupsToEscapeSandbox(boolean allowPopupsToEscapeSandbox) -
allowPresentation
public boolean allowPresentation() -
setAllowPresentation
public void setAllowPresentation(boolean allowPresentation) -
allowSameOrigin
public boolean allowSameOrigin() -
setAllowSameOrigin
public void setAllowSameOrigin(boolean allowSameOrigin) -
allowScripts
public boolean allowScripts() -
setAllowScripts
public void setAllowScripts(boolean allowScripts) -
allowStorageAccessByUserActivation
public boolean allowStorageAccessByUserActivation() -
setAllowStorageAccessByUserActivation
public void setAllowStorageAccessByUserActivation(boolean allowStorageAccessByUserActivation)
-