public void optimise()
public boolean containsFetchDirective()
public void postProcessOptimisation()
public void unionDirective(@Nonnull Directive<? extends DirectiveValue> directive)
public void intersectDirective(@Nonnull Directive<? extends DirectiveValue> directive)
public <V extends DirectiveValue,T extends Directive<V>> void addDirective(@Nonnull T d)
public void addDirectives(@Nonnull Iterable<Directive<? extends DirectiveValue>> directives)
@Nonnull public Collection<Directive<? extends DirectiveValue>> getDirectives()
@Nullable public <V extends DirectiveValue,T extends Directive<V>> T getDirectiveByType(@Nonnull Class<T> type)
public boolean hasStrictDynamic()
public boolean allowsStyleWithHash(@Nonnull HashSource.HashAlgorithm algorithm, @Nonnull Base64Value hashValue)
public boolean allowsScriptWithHash(@Nonnull HashSource.HashAlgorithm algorithm, @Nonnull Base64Value hashValue)
public boolean allowsScriptAttributeWithHash(@Nonnull HashSource.HashAlgorithm algorithm, @Nonnull Base64Value hashValue)
public boolean allowsStyleAttributeWithHash(@Nonnull HashSource.HashAlgorithm algorithm, @Nonnull Base64Value hashValue)
public boolean allowsUnsafeInlineScript()
public boolean haveUnsafeScriptHashes()
public boolean haveUnsafeStyleHashes()
public <T extends SourceListDirective> boolean containsSourceExpression(Class<T> type, @Nonnull java.util.function.Predicate<SourceExpression> predicate)
@Nonnull public <T extends SourceListDirective> java.util.stream.Stream<SourceExpression> getEffectiveSourceExpressions(Class<T> type)
public boolean allowsUnsafeInlineStyle()
public boolean allowsScriptWithNonce(@Nonnull Base64Value nonce)
public boolean allowsStyleWithNonce(@Nonnull Base64Value nonce)
public boolean hasSomeEffect()
Copyright © 2020. All rights reserved.