Index

A B C D E F G H I M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

add(Policy.Severity, String, int) - Method in interface org.htmlunit.csp.Directive.DirectiveErrorConsumer
Called when a parsing error or warning is encountered.
add(Policy.Severity, String, int, int) - Method in interface org.htmlunit.csp.Policy.PolicyErrorConsumer
Called when a parsing error or warning is encountered.
add(Policy.Severity, String, int, int, int) - Method in interface org.htmlunit.csp.Policy.PolicyListErrorConsumer
Called when a parsing error or warning is encountered.
addValue(String) - Method in class org.htmlunit.csp.Directive
Appends a value to this directive's value list.
addValue(String) - Method in class org.htmlunit.csp.directive.HostSourceDirective
 
algorithm() - Method in record class org.htmlunit.csp.value.Hash
Returns the value of the algorithm record component.
allowDownloads() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-downloads sandbox keyword is present.
allowDuplicates() - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Returns whether the 'allow-duplicates' keyword is present.
allowForms() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-forms sandbox keyword is present.
allowModals() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-modals sandbox keyword is present.
allowOrientationLock() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-orientation-lock sandbox keyword is present.
allowPointerLock() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-pointer-lock sandbox keyword is present.
allowPopups() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-popups sandbox keyword is present.
allowPopupsToEscapeSandbox() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-popups-to-escape-sandbox sandbox keyword is present.
allowPresentation() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-presentation sandbox keyword is present.
allowSameOrigin() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-same-origin sandbox keyword is present.
allowsApplicationManifest(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether an application manifest is allowed.
allowsApplicationManifest(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading an application manifest from the given source.
allowsApplicationManifest(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsConnection(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a connection is allowed.
allowsConnection(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows a connection (e.g.
allowsConnection(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsConnection(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether a connection to the given URL is allowed.
allowScripts() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-scripts sandbox keyword is present.
allowsEval() - Method in interface org.htmlunit.csp.CspQueries
Returns whether eval is allowed.
allowsEval() - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether eval is allowed.
allowsEval() - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows the use of eval() and similar string-to-code mechanisms.
allowsEval() - Method in class org.htmlunit.csp.PolicyList
 
allowsExternalScript(Optional<String>, Optional<String>, Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether an external script is allowed.
allowsExternalScript(Optional<String>, Optional<String>, Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading an external script.
allowsExternalScript(Optional<String>, Optional<String>, Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsExternalStyle(Optional<String>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether an external stylesheet is allowed.
allowsExternalStyle(Optional<String>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading an external stylesheet.
allowsExternalStyle(Optional<String>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsFont(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a font is allowed.
allowsFont(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading a font from the given source.
allowsFont(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsFontFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether a font from the given URL is allowed.
allowsFormAction(Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a form action is allowed.
allowsFormAction(Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows a form submission to the given URL.
allowsFormAction(Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsFormAction(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether a form action to the given URL is allowed.
allowsFrame(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a frame is allowed.
allowsFrame(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading a frame (iframe/frame) from the given source.
allowsFrame(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsFrameAncestor(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a frame ancestor is allowed.
allowsFrameAncestor(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows being framed by the given ancestor origin.
allowsFrameAncestor(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsFrameAncestor(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether the given frame ancestor is allowed.
allowsFrameFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether a frame from the given URL is allowed.
allowsImage(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether an image is allowed.
allowsImage(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading an image from the given source.
allowsImage(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsImageFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether an image from the given URL is allowed.
allowsInlineScript(Optional<String>, Optional<String>, Optional<Boolean>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether an inline script is allowed.
allowsInlineScript(Optional<String>, Optional<String>, Optional<Boolean>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows an inline <script> element.
allowsInlineScript(Optional<String>, Optional<String>, Optional<Boolean>) - Method in class org.htmlunit.csp.PolicyList
 
allowsInlineStyle(Optional<String>, Optional<String>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether an inline style is allowed.
allowsInlineStyle(Optional<String>, Optional<String>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows an inline <style> element.
allowsInlineStyle(Optional<String>, Optional<String>) - Method in class org.htmlunit.csp.PolicyList
 
allowsJavascriptUrlNavigation(Optional<String>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a javascript: URL navigation is allowed.
allowsJavascriptUrlNavigation(Optional<String>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows a javascript: URL navigation.
allowsJavascriptUrlNavigation(Optional<String>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsManifestFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether an application manifest from the given URL is allowed.
allowsMedia(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether media is allowed.
allowsMedia(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading media (audio/video) from the given source.
allowsMedia(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsMediaFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether media from the given URL is allowed.
allowsNavigation(Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether navigation is allowed.
allowsNavigation(Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows a navigation to the given URL.
allowsNavigation(Optional<? extends URLWithScheme>, Optional<Boolean>, Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsNavigation(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether navigation to the given URL is allowed.
allowsObject(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether an object is allowed.
allowsObject(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading an object/embed/applet from the given source.
allowsObject(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsObjectFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether an object from the given URL is allowed.
allowsPlugin(Optional<? extends MediaType>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a plugin type is allowed.
allowsPlugin(Optional<? extends MediaType>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows a plugin of the given media type.
allowsPlugin(Optional<? extends MediaType>) - Method in class org.htmlunit.csp.PolicyList
 
allowsPrefetch(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a prefetch is allowed.
allowsPrefetch(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows a prefetch from the given source.
allowsPrefetch(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsPrefetchFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether a prefetch from the given URL is allowed.
allowsScriptAsAttribute(Optional<String>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a script event-handler attribute is allowed.
allowsScriptAsAttribute(Optional<String>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows a script provided as an inline event handler attribute (e.g.
allowsScriptAsAttribute(Optional<String>) - Method in class org.htmlunit.csp.PolicyList
 
allowsScriptFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether an external script from the given URL is allowed.
allowsStyleAsAttribute(Optional<String>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a style attribute is allowed.
allowsStyleAsAttribute(Optional<String>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows an inline style attribute (e.g.
allowsStyleAsAttribute(Optional<String>) - Method in class org.htmlunit.csp.PolicyList
 
allowsStyleFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether an external stylesheet from the given URL is allowed.
allowStorageAccessByUserActivation() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-storage-access-by-user-activation sandbox keyword is present.
allowsUnsafeInlineScript() - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether unsafe inline script is allowed.
allowsUnsafeInlineStyle() - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether unsafe inline style is allowed.
allowsWildcardPolicyNames() - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Indicates if wildcard policy names are permitted.
allowsWildcardPolicyNames() - Method in class org.htmlunit.csp.Policy
Indicates if wildcard policy names are permitted in the trusted-types directive.
allowsWorker(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in interface org.htmlunit.csp.CspQueries
Returns whether a worker is allowed.
allowsWorker(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.Policy
Determines whether this policy allows loading a worker (dedicated, shared, or service) from the given source.
allowsWorker(Optional<? extends URLWithScheme>, Optional<? extends URLWithScheme>) - Method in class org.htmlunit.csp.PolicyList
 
allowsWorkerFromSource(URLWithScheme) - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns whether a worker from the given URL is allowed.
allowTopNavigation() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-top-navigation sandbox keyword is present.
allowTopNavigationByUserActivation() - Method in class org.htmlunit.csp.directive.SandboxDirective
Returns whether the allow-top-navigation-by-user-activation sandbox keyword is present.

B

base64ValuePart() - Method in record class org.htmlunit.csp.value.Hash
Returns the value of the base64ValuePart record component.
base64ValuePart() - Method in record class org.htmlunit.csp.value.Nonce
Returns the value of the base64ValuePart record component.
baseUri() - Method in class org.htmlunit.csp.Policy
Returns the parsed base-uri directive, if present.
blockAllMixedContent() - Method in class org.htmlunit.csp.Policy
Returns whether the block-all-mixed-content directive is present.

C

ChildSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The child-src fetch directive.
ConnectSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The connect-src fetch directive.
Constants - Class in org.htmlunit.csp
Shared constants used throughout the CSP parser.
containsNonDirectiveCharacter(String) - Static method in class org.htmlunit.csp.Directive
Tests if a string contains any non-directive characters.
CspQueries - Interface in org.htmlunit.csp
Enforcement query API shared by Policy and PolicyList.
CspQueriesInOrigin - Class in org.htmlunit.csp
Convenience wrapper that pairs a CspQueries target with an origin, supplying simplified query methods that fill in the origin and leave unused parameters empty.
CspQueriesInOrigin(CspQueries, URLWithScheme) - Constructor for class org.htmlunit.csp.CspQueriesInOrigin
Ctor.

D

defaultPortForProtocol(String) - Static method in class org.htmlunit.csp.url.URI
Returns the default port number for the given protocol scheme.
DefaultSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The default-src fetch directive (fallback for all other fetch directives).
deliveredViaMeta() - Method in class org.htmlunit.csp.Policy
Returns whether this policy was parsed as delivered via a meta element.
Directive - Class in org.htmlunit.csp
Base class for all CSP directive representations.
Directive(List<String>) - Constructor for class org.htmlunit.csp.Directive
Constructs a directive with the given list of values.
DIRECTIVE_NAME_PATTERN - Static variable in class org.htmlunit.csp.Constants
Pattern matching a valid CSP directive name (ALPHA / DIGIT / "-").
Directive.DirectiveErrorConsumer - Interface in org.htmlunit.csp
A callback interface for receiving errors and warnings encountered while parsing a single directive's values.
doesUrlMatchSourceListInOrigin(URLWithScheme, HostSourceDirective, Optional<? extends URLWithScheme>) - Static method in class org.htmlunit.csp.Policy
Determines whether a URL matches a source list in the context of a given origin.

E

EMPTY_PORT - Static variable in class org.htmlunit.csp.Constants
Sentinel value representing an empty (unspecified) port in a host-source.
equals(Object) - Method in class org.htmlunit.csp.url.URLWithScheme
equals(Object) - Method in record class org.htmlunit.csp.value.Hash
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.htmlunit.csp.value.Host
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.htmlunit.csp.value.MediaType
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.htmlunit.csp.value.Nonce
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.htmlunit.csp.value.RFC7230Token
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class org.htmlunit.csp.value.Scheme
Indicates whether some other object is "equal to" this one.
Error - Enum constant in enum class org.htmlunit.csp.Policy.Severity
Severity Error.
extractLeadingToken(String) - Static method in class org.htmlunit.csp.Utils
Extracts the first contiguous sequence of non-ASCII-whitespace characters from the beginning of the input string.

F

FetchDirectiveKind - Enum Class in org.htmlunit.csp
Enumerates the CSP fetch directive names and provides their fallback chains.
FontSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The font-src fetch directive.
formAction() - Method in class org.htmlunit.csp.Policy
Returns the parsed form-action directive, if present.
frameAncestors() - Method in class org.htmlunit.csp.Policy
Returns the parsed frame-ancestors directive, if present.
FrameAncestorsDirective - Class in org.htmlunit.csp.directive
Represents the frame-ancestors CSP directive.
FrameAncestorsDirective(List<String>, Directive.DirectiveErrorConsumer) - Constructor for class org.htmlunit.csp.directive.FrameAncestorsDirective
Parses a frame-ancestors directive from the given list of values.
FrameSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The frame-src fetch directive.
fromString(String) - Static method in enum class org.htmlunit.csp.FetchDirectiveKind
Looks up a FetchDirectiveKind by its lowercase directive name.

G

getAlgorithm() - Method in record class org.htmlunit.csp.value.Hash
Returns the hash algorithm.
getBase64ValuePart() - Method in record class org.htmlunit.csp.value.Hash
Returns the Base64-encoded hash value.
getFetchDirective(FetchDirectiveKind) - Method in class org.htmlunit.csp.Policy
Returns the parsed fetch directive of the specified kind, if present.
getGoverningDirectiveForEffectiveDirective(FetchDirectiveKind) - Method in class org.htmlunit.csp.Policy
Returns the governing directive for the given effective fetch directive kind, walking the fallback chain as defined in the specification.
getHashes() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns an unmodifiable list of hash-sources parsed from this directive.
getHost() - Method in class org.htmlunit.csp.url.URLWithScheme
Returns the host component of this URL, in lowercase.
getHosts() - Method in class org.htmlunit.csp.directive.HostSourceDirective
Returns an unmodifiable list of host-sources (e.g.
getLength() - Method in enum class org.htmlunit.csp.value.Hash.Algorithm
Returns the expected length of the Base64-encoded digest for this algorithm.
getMediaTypes() - Method in class org.htmlunit.csp.directive.PluginTypesDirective
Returns an unmodifiable list of the media types allowed by this directive.
getNonces() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns an unmodifiable list of nonce-sources parsed from this directive.
getNone() - Method in class org.htmlunit.csp.directive.HostSourceDirective
Returns the original 'none' token if the directive was set to 'none', or null if the directive is not 'none'.
getOrigin() - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns the underlying origin.
getPath() - Method in class org.htmlunit.csp.url.URLWithScheme
Returns the path component of this URL.
getPolicies() - Method in class org.htmlunit.csp.PolicyList
Returns the member policies (unmodifiable).
getPolicy() - Method in class org.htmlunit.csp.PolicyInOrigin
Returns the underlying Policy.
getPolicyList() - Method in class org.htmlunit.csp.PolicyListInOrigin
Returns the underlying PolicyList.
getPolicyNames() - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Returns an unmodifiable list of the explicitly named Trusted Type policy names (excluding keywords and wildcard).
getPort() - Method in class org.htmlunit.csp.url.URLWithScheme
Returns the port component of this URL.
getQueries() - Method in class org.htmlunit.csp.CspQueriesInOrigin
Returns the underlying query target.
getRepr() - Method in enum class org.htmlunit.csp.FetchDirectiveKind
Returns the lowercase directive name as it appears in a serialized CSP (e.g.
getScheme() - Method in class org.htmlunit.csp.url.URLWithScheme
Returns the scheme component of this URL, in lowercase.
getSchemes() - Method in class org.htmlunit.csp.directive.HostSourceDirective
Returns an unmodifiable list of scheme-sources (e.g.
getUris() - Method in class org.htmlunit.csp.directive.ReportUriDirective
Returns an unmodifiable list of the report URIs specified in this directive.
getValues() - Method in class org.htmlunit.csp.Directive
Returns an unmodifiable view of this directive's raw string values.
GUID - Class in org.htmlunit.csp.url
Represents an opaque (non-hierarchical) URL that has a scheme and an opaque value but no host or port, e.g.
GUID(String, String) - Constructor for class org.htmlunit.csp.url.GUID
Constructs a GUID (opaque URL) with the given scheme and opaque value.

H

Hash - Record Class in org.htmlunit.csp.value
Represents a CSP hash-source value, e.g.
Hash(Hash.Algorithm, String) - Constructor for record class org.htmlunit.csp.value.Hash
Creates an instance of a Hash record class.
Hash.Algorithm - Enum Class in org.htmlunit.csp.value
Enumerates the hash algorithms supported by CSP hash-sources.
hashCode() - Method in class org.htmlunit.csp.url.URLWithScheme
hashCode() - Method in record class org.htmlunit.csp.value.Hash
Returns a hash code value for this object.
hashCode() - Method in record class org.htmlunit.csp.value.Host
Returns a hash code value for this object.
hashCode() - Method in record class org.htmlunit.csp.value.MediaType
Returns a hash code value for this object.
hashCode() - Method in record class org.htmlunit.csp.value.Nonce
Returns a hash code value for this object.
hashCode() - Method in record class org.htmlunit.csp.value.RFC7230Token
Returns a hash code value for this object.
hashCode() - Method in record class org.htmlunit.csp.value.Scheme
Returns a hash code value for this object.
host() - Method in record class org.htmlunit.csp.value.Host
Returns the value of the host record component.
Host - Record Class in org.htmlunit.csp.value
Represents a CSP host-source value, e.g.
Host(String, String, int, String) - Constructor for record class org.htmlunit.csp.value.Host
Creates an instance of a Host record class.
HOST_SOURCE_PATTERN - Static variable in class org.htmlunit.csp.Constants
Pattern matching a CSP host-source expression.
HostSourceDirective - Class in org.htmlunit.csp.directive
Abstract base class for directives whose values are host-source lists.
HostSourceDirective(List<String>) - Constructor for class org.htmlunit.csp.directive.HostSourceDirective
Constructs a host-source directive from the given raw values.

I

ignored - Static variable in interface org.htmlunit.csp.Directive.DirectiveErrorConsumer
A no-op consumer that silently ignores all errors.
ignored - Static variable in interface org.htmlunit.csp.Policy.PolicyErrorConsumer
PolicyErrorConsumer ignored.
ignored - Static variable in interface org.htmlunit.csp.Policy.PolicyListErrorConsumer
PolicyListErrorConsumer ignored.
ImgSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The img-src fetch directive.
Info - Enum constant in enum class org.htmlunit.csp.Policy.Severity
Severity Info.
IPv4address - Static variable in class org.htmlunit.csp.Constants
Pattern matching an IPv4 address in dotted-decimal notation.
IPv6addressWithOptionalBracket - Static variable in class org.htmlunit.csp.Constants
Pattern matching an IPv6 address, with or without enclosing brackets.
IPV6loopback - Static variable in class org.htmlunit.csp.Constants
Pattern matching the IPv6 loopback address (::1) in its various zero-expanded forms (e.g.
IS_BASE64_VALUE - Static variable in class org.htmlunit.csp.Utils
Predicate that tests whether a string matches the Base64 value grammar used in CSP nonce-sources and hash-sources.
IS_DIRECTIVE_NAME - Static variable in class org.htmlunit.csp.Directive
Predicate that tests whether a string is a valid directive name (ALPHA / DIGIT / "-").
isAsciiWhitespace(char) - Static method in class org.htmlunit.csp.Constants
Tests if a character is ASCII whitespace.

M

ManifestSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The manifest-src fetch directive.
MEDIA_TYPE_PATTERN - Static variable in class org.htmlunit.csp.Constants
Pattern matching a media type (type/subtype) per RFC 2045 §5.1.
MediaSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The media-src fetch directive.
MediaType - Record Class in org.htmlunit.csp.value
Represents a media type (MIME type) value used by the (deprecated) plugin-types CSP directive, e.g.
MediaType(String, String) - Constructor for record class org.htmlunit.csp.value.MediaType
Creates an instance of a MediaType record class.

N

navigateTo() - Method in class org.htmlunit.csp.Policy
Returns the parsed navigate-to directive, if present.
Nonce - Record Class in org.htmlunit.csp.value
Represents a CSP nonce-source value, e.g.
Nonce(String) - Constructor for record class org.htmlunit.csp.value.Nonce
Creates an instance of a Nonce record class.
none() - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Returns whether the 'none' keyword is present.

O

ObjectSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The object-src fetch directive.
ofSerialized(List<String>, Policy.PolicyListErrorConsumer) - Static method in class org.htmlunit.csp.PolicyList
Parses and combines multiple serialized CSP strings into one policy list.
org.htmlunit.csp - module org.htmlunit.csp
HtmlUnit Content Security Policy (CSP) parser and validator.
org.htmlunit.csp - package org.htmlunit.csp
Content Security Policy.
org.htmlunit.csp.directive - package org.htmlunit.csp.directive
Content Security Policy directives.
org.htmlunit.csp.url - package org.htmlunit.csp.url
Content Security Policy url support.
org.htmlunit.csp.value - package org.htmlunit.csp.value
Content Security Policy values.

P

parseGUID(String) - Static method in class org.htmlunit.csp.url.GUID
Parses an opaque URL from its string representation.
parseHash(String) - Static method in record class org.htmlunit.csp.value.Hash
Parses a hash-source from its CSP string representation.
parseHost(String) - Static method in record class org.htmlunit.csp.value.Host
Parses a host-source from its CSP string representation.
parseMediaType(String) - Static method in record class org.htmlunit.csp.value.MediaType
Parses a media type from its string representation.
parseNonce(String) - Static method in record class org.htmlunit.csp.value.Nonce
Parses a nonce-source from its CSP string representation.
parseRFC7230Token(String) - Static method in record class org.htmlunit.csp.value.RFC7230Token
Parses an RFC 7230 token from the given string.
parseScheme(String) - Static method in record class org.htmlunit.csp.value.Scheme
Parses a scheme-source from its CSP string representation.
parseSerializedCSP(String, Policy.PolicyErrorConsumer) - Static method in class org.htmlunit.csp.Policy
Parses a single serialized CSP string into a Policy.
parseSerializedCSP(String, Policy.PolicyErrorConsumer, boolean) - Static method in class org.htmlunit.csp.Policy
Parses a single serialized CSP string into a Policy.
parseSerializedCSPList(String, Policy.PolicyListErrorConsumer) - Static method in class org.htmlunit.csp.Policy
Parses a serialized CSP list (comma-separated policies) into a PolicyList.
parseURI(String) - Static method in class org.htmlunit.csp.url.URI
Parses a hierarchical URI from its string representation.
path() - Method in record class org.htmlunit.csp.value.Host
Returns the value of the path record component.
pluginTypes() - Method in class org.htmlunit.csp.Policy
Returns the parsed plugin-types directive, if present.
PluginTypesDirective - Class in org.htmlunit.csp.directive
Represents the (deprecated) plugin-types CSP directive.
PluginTypesDirective(List<String>, Directive.DirectiveErrorConsumer) - Constructor for class org.htmlunit.csp.directive.PluginTypesDirective
Parses a plugin-types directive from the given list of media-type values.
Policy - Class in org.htmlunit.csp
Represents a single parsed Content Security Policy.
Policy.PolicyErrorConsumer - Interface in org.htmlunit.csp
A callback interface for receiving errors and warnings encountered while parsing a single serialized CSP.
Policy.PolicyListErrorConsumer - Interface in org.htmlunit.csp
A callback interface for receiving errors and warnings encountered while parsing a serialized CSP list (comma-separated policies).
Policy.Severity - Enum Class in org.htmlunit.csp
The severity level of a parsing error or warning.
PolicyInOrigin - Class in org.htmlunit.csp
A convenience wrapper that pairs a Policy with its origin, providing simplified query methods that automatically supply the origin to the underlying policy checks.
PolicyInOrigin(Policy, URLWithScheme) - Constructor for class org.htmlunit.csp.PolicyInOrigin
Ctor.
PolicyList - Class in org.htmlunit.csp
Represents a list of Content Security Policies parsed from a comma-separated serialized CSP list, or combined from multiple header / meta deliveries.
PolicyList(List<Policy>) - Constructor for class org.htmlunit.csp.PolicyList
Ctor.
PolicyListInOrigin - Class in org.htmlunit.csp
A convenience wrapper that pairs a PolicyList with its origin.
PolicyListInOrigin(PolicyList, URLWithScheme) - Constructor for class org.htmlunit.csp.PolicyListInOrigin
Ctor.
port() - Method in record class org.htmlunit.csp.value.Host
Returns the value of the port record component.
PrefetchSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The (deprecated) prefetch-src fetch directive.

R

removeValueIgnoreCase(String) - Method in class org.htmlunit.csp.directive.HostSourceDirective
 
removeValueIgnoreCase(String) - Method in class org.htmlunit.csp.Directive
Removes all occurrences of a value from this directive (case-insensitive comparison).
reportSample() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns whether the 'report-sample' keyword is present.
reportTo() - Method in class org.htmlunit.csp.Policy
Returns the parsed report-to directive value, if present.
reportUri() - Method in class org.htmlunit.csp.Policy
Returns the parsed report-uri directive, if present.
ReportUriDirective - Class in org.htmlunit.csp.directive
Represents the (deprecated) report-uri CSP directive.
ReportUriDirective(List<String>, Directive.DirectiveErrorConsumer) - Constructor for class org.htmlunit.csp.directive.ReportUriDirective
Parses a report-uri directive from the given list of URI values.
requireTrustedTypesFor() - Method in class org.htmlunit.csp.Policy
Returns the parsed require-trusted-types-for directive, if present.
RequireTrustedTypesForDirective - Class in org.htmlunit.csp.directive
Represents the require-trusted-types-for CSP directive.
RequireTrustedTypesForDirective(List<String>, Directive.DirectiveErrorConsumer) - Constructor for class org.htmlunit.csp.directive.RequireTrustedTypesForDirective
Parses a require-trusted-types-for directive from the given list of values.
RFC7230Token - Record Class in org.htmlunit.csp.value
Represents an RFC 7230 token value, used as the value of the report-to CSP directive.
RFC7230Token(String) - Constructor for record class org.htmlunit.csp.value.RFC7230Token
Creates an instance of a RFC7230Token record class.
rfc7230TokenPattern - Static variable in class org.htmlunit.csp.Constants
Pattern matching an RFC 7230 token (one or more tchar characters).

S

sandbox() - Method in class org.htmlunit.csp.Policy
Returns the parsed sandbox directive, if present.
SandboxDirective - Class in org.htmlunit.csp.directive
Represents the sandbox CSP directive.
SandboxDirective(List<String>, Directive.DirectiveErrorConsumer) - Constructor for class org.htmlunit.csp.directive.SandboxDirective
Parses a sandbox directive from the given list of keyword values.
scheme() - Method in record class org.htmlunit.csp.value.Host
Returns the value of the scheme record component.
Scheme - Record Class in org.htmlunit.csp.value
Represents a CSP scheme-source value, e.g.
Scheme(String) - Constructor for record class org.htmlunit.csp.value.Scheme
Creates an instance of a Scheme record class.
SCHEME_PART - Static variable in class org.htmlunit.csp.Constants
Regex fragment matching a URI scheme per RFC 3986 §3.1.
SCHEME_PATTERN - Static variable in class org.htmlunit.csp.Constants
Pattern that matches a URI scheme followed by a colon at the start of a string.
script() - Method in class org.htmlunit.csp.directive.RequireTrustedTypesForDirective
Returns whether the 'script' keyword is present.
ScriptSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The script-src fetch directive.
ScriptSrcAttr - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The script-src-attr fetch directive.
ScriptSrcElem - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The script-src-elem fetch directive.
self() - Method in class org.htmlunit.csp.directive.HostSourceDirective
Returns whether the 'self' keyword is present in this source list.
setAllowDuplicates_(boolean) - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Sets whether the 'allow-duplicates' keyword is present.
setNone(boolean) - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Sets whether the 'none' keyword is present.
setScript(boolean) - Method in class org.htmlunit.csp.directive.RequireTrustedTypesForDirective
Sets whether the 'script' keyword is present.
setStar(boolean) - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Sets whether the wildcard (*) is present.
SHA256 - Enum constant in enum class org.htmlunit.csp.value.Hash.Algorithm
SHA-256 algorithm (sha256), producing a 44-character Base64 digest.
SHA384 - Enum constant in enum class org.htmlunit.csp.value.Hash.Algorithm
SHA-384 algorithm (sha384), producing a 64-character Base64 digest.
SHA512 - Enum constant in enum class org.htmlunit.csp.value.Hash.Algorithm
SHA-512 algorithm (sha512), producing an 88-character Base64 digest.
SourceExpressionDirective - Class in org.htmlunit.csp.directive
Represents a CSP directive whose values form a source-expression list.
SourceExpressionDirective(List<String>, Directive.DirectiveErrorConsumer) - Constructor for class org.htmlunit.csp.directive.SourceExpressionDirective
Parses a source-expression directive from the given list of values.
star() - Method in class org.htmlunit.csp.directive.HostSourceDirective
Returns whether the wildcard (*) is present in this source list.
star() - Method in class org.htmlunit.csp.directive.TrustedTypesDirective
Returns whether the wildcard (*) is present.
strictDynamic() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns whether the 'strict-dynamic' keyword is present.
StyleSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The style-src fetch directive.
StyleSrcAttr - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The style-src-attr fetch directive.
StyleSrcElem - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The style-src-elem fetch directive.
subtype() - Method in record class org.htmlunit.csp.value.MediaType
Returns the value of the subtype record component.

T

toString() - Method in class org.htmlunit.csp.Policy
Serializes this policy back to its string representation.
toString() - Method in class org.htmlunit.csp.PolicyList
Serializes this policy list back to its string representation.
toString() - Method in enum class org.htmlunit.csp.value.Hash.Algorithm
Returns the lowercase algorithm name as used in the CSP grammar (e.g.
toString() - Method in record class org.htmlunit.csp.value.Hash
Returns the CSP string representation of this hash-source, e.g.
toString() - Method in record class org.htmlunit.csp.value.Host
Returns the CSP string representation of this host-source.
toString() - Method in record class org.htmlunit.csp.value.MediaType
Returns the media type in its canonical type/subtype form (e.g.
toString() - Method in record class org.htmlunit.csp.value.Nonce
Returns the CSP string representation of this nonce-source, e.g.
toString() - Method in record class org.htmlunit.csp.value.RFC7230Token
Returns the token value as-is.
toString() - Method in record class org.htmlunit.csp.value.Scheme
Returns the CSP string representation of this scheme-source (the lowercase scheme name followed by a colon, e.g.
trimAsciiWhitespace(String) - Static method in class org.htmlunit.csp.Utils
Trims leading and trailing ASCII whitespace (\t, \n, \f, \r, and space) from the given string.
trustedTypes() - Method in class org.htmlunit.csp.Policy
Returns the parsed trusted-types directive, if present.
TrustedTypesDirective - Class in org.htmlunit.csp.directive
Represents the trusted-types CSP directive.
TrustedTypesDirective(List<String>, Directive.DirectiveErrorConsumer) - Constructor for class org.htmlunit.csp.directive.TrustedTypesDirective
Parses a trusted-types directive from the given list of values.
type() - Method in record class org.htmlunit.csp.value.MediaType
Returns the value of the type record component.

U

UNQUOTED_KEYWORD_PATTERN - Static variable in class org.htmlunit.csp.Constants
Pattern matching CSP keyword-like tokens that are missing their required single quotes (e.g.
unsafeAllowRedirects() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns whether the 'unsafe-allow-redirects' keyword is present.
unsafeEval() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns whether the 'unsafe-eval' keyword is present.
unsafeHashes() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns whether the 'unsafe-hashes' keyword is present.
unsafeInline() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns whether the 'unsafe-inline' keyword is present.
unsafeWasm() - Method in class org.htmlunit.csp.directive.SourceExpressionDirective
Returns whether the 'wasm-unsafe-eval' keyword is present.
upgradeInsecureRequests() - Method in class org.htmlunit.csp.Policy
Returns whether the upgrade-insecure-requests directive is present.
URI - Class in org.htmlunit.csp.url
Represents a hierarchical URI with scheme, host, port, and path components.
URI(String, String, int, String) - Constructor for class org.htmlunit.csp.url.URI
Constructs a hierarchical URI with the given components.
URLWithScheme - Class in org.htmlunit.csp.url
Abstract base class representing a URL that has at least a scheme component.
URLWithScheme(String, String, Integer, String) - Constructor for class org.htmlunit.csp.url.URLWithScheme
Constructs a URL with the given components.
Utils - Class in org.htmlunit.csp
Internal utility methods and constants used by the CSP parser.

V

value() - Method in record class org.htmlunit.csp.value.RFC7230Token
Returns the value of the value record component.
value() - Method in record class org.htmlunit.csp.value.Scheme
Returns the value of the value record component.
valueOf(String) - Static method in enum class org.htmlunit.csp.FetchDirectiveKind
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.htmlunit.csp.Policy.Severity
Returns the enum constant of this class with the specified name.
valueOf(String) - Static method in enum class org.htmlunit.csp.value.Hash.Algorithm
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.htmlunit.csp.FetchDirectiveKind
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.htmlunit.csp.Policy.Severity
Returns an array containing the constants of this enum class, in the order they are declared.
values() - Static method in enum class org.htmlunit.csp.value.Hash.Algorithm
Returns an array containing the constants of this enum class, in the order they are declared.

W

Warning - Enum constant in enum class org.htmlunit.csp.Policy.Severity
Severity Warning.
WILDCARD_PORT - Static variable in class org.htmlunit.csp.Constants
Sentinel value representing a wildcard port (:*) in a host-source.
WorkerSrc - Enum constant in enum class org.htmlunit.csp.FetchDirectiveKind
The worker-src fetch directive.
A B C D E F G H I M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values