com.shapesecurity.salvation.directives.StyleSrcElemDirective Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of salvation Show documentation
Show all versions of salvation Show documentation
Parse Content Security Policy headers, warn about policy errors, safely manipulate, render, and optimise policies
The newest version!
package com.shapesecurity.salvation.directives;
import java.util.Set;
import javax.annotation.Nonnull;
import com.shapesecurity.salvation.directiveValues.SourceExpression;
public class StyleSrcElemDirective extends FetchDirective {
@Nonnull
private static final String NAME = "style-src-elem";
public StyleSrcElemDirective(@Nonnull Set sourceExpressions) {
super(StyleSrcElemDirective.NAME, sourceExpressions);
}
@Nonnull
@Override
public Directive construct(Set newValues) {
return new StyleSrcElemDirective(newValues);
}
}