com.shapesecurity.salvation.directives.DefaultSrcDirective 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 com.shapesecurity.salvation.directiveValues.SourceExpression;
import javax.annotation.Nonnull;
import java.util.Set;
public class DefaultSrcDirective extends FetchDirective {
@Nonnull
private static final String name = "default-src";
public DefaultSrcDirective(@Nonnull Set sourceExpressions) {
super(DefaultSrcDirective.name, sourceExpressions);
}
@Nonnull
@Override
public Directive construct(Set newValues) {
return new DefaultSrcDirective(newValues);
}
}