public abstract class SourceListDirective extends Directive<SourceExpression> implements MatchesSource, MatchesHash, MatchesNonce
FETCH_DIRECIVE_COUNT, name, NESTED_CONTEXT_DIRECTIVE_COUNT| Modifier and Type | Method and Description |
|---|---|
boolean |
containsHashSource() |
boolean |
containsKeywordsAndNoncesOnly() |
boolean |
containsNonceSource() |
boolean |
matchesHash(HashSource.HashAlgorithm algorithm,
Base64Value hashValue) |
boolean |
matchesNonce(String nonce) |
boolean |
matchesSource(Origin origin,
GUID resource) |
boolean |
matchesSource(Origin origin,
URI resource) |
Directive<SourceExpression> |
resolveSelf(Origin origin) |
bind, clone, construct, contains, equals, getFetchDirectives, getNestedContextDirectives, hashCode, intersect, show, sourceListEquals, union, valuespublic boolean matchesHash(@Nonnull HashSource.HashAlgorithm algorithm, @Nonnull Base64Value hashValue)
matchesHash in interface MatchesHashpublic boolean matchesSource(@Nonnull Origin origin, @Nonnull URI resource)
matchesSource in interface MatchesSourcepublic boolean matchesSource(@Nonnull Origin origin, @Nonnull GUID resource)
matchesSource in interface MatchesSourcepublic boolean matchesNonce(@Nonnull String nonce)
matchesNonce in interface MatchesNoncepublic boolean containsHashSource()
public boolean containsNonceSource()
public boolean containsKeywordsAndNoncesOnly()
@Nonnull public Directive<SourceExpression> resolveSelf(@Nonnull Origin origin)
Copyright © 2020. All rights reserved.