Class SandboxDirective
java.lang.Object
com.shapesecurity.salvation2.Directive
com.shapesecurity.salvation2.Directives.SandboxDirective
-
Nested Class Summary
Nested classes/interfaces inherited from class Directive
Directive.DirectiveErrorConsumer, Directive.ManipulationErrorConsumer -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanFields inherited from class Directive
containsNonDirectiveCharacter, values -
Constructor Summary
ConstructorsConstructorDescriptionSandboxDirective(List<String> values, Directive.DirectiveErrorConsumer errors) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanvoidsetAllowDownloads(boolean allowDownloads) voidsetAllowForms(boolean allowForms) voidsetAllowModals(boolean allowModals) voidsetAllowOrientationLock(boolean allowOrientationLock) voidsetAllowPointerLock(boolean allowPointerLock) voidsetAllowPopups(boolean allowPopups) voidsetAllowPopupsToEscapeSandbox(boolean allowPopupsToEscapeSandbox) voidsetAllowPresentation(boolean allowPresentation) voidsetAllowSameOrigin(boolean allowSameOrigin) voidsetAllowScripts(boolean allowScripts) voidsetAllowStorageAccessByUserActivation(boolean allowStorageAccessByUserActivation) voidsetAllowTopNavigation(boolean allowTopNavigation) voidsetAllowTopNavigationByUserActivation(boolean allowTopNavigationByUserActivation) Methods inherited from class 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)
-