Class PslData
The Public Suffix List (PSL) is a critical component in domain name validation, helping to determine the boundaries of registrable domains. This class encapsulates the necessary data structures to efficiently manage and query the PSL, ensuring accurate validation of domain names against the list of known suffixes, wildcards, and exceptions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
registrySuffixTrie
Trie for registry suffixes.This trie holds the standard registry suffixes, which are the top-level domains (TLDs) and other recognized suffixes that are part of the public registry. It is used to validate whether a given domain name ends with a recognized suffix, ensuring compliance with the public suffix rules.
-
registryWildcardTrie
Trie for registry wildcards.This trie contains wildcard entries for registry suffixes, allowing for the validation of domains that match wildcard patterns. Wildcards are used to represent multiple possible domain endings, providing flexibility in the validation process for domains that fall under wildcard rules.
-
registryExceptionTrie
Trie for registry exceptions.This trie stores exceptions to the standard registry suffix rules. Exceptions are specific domain names that do not follow the general suffix patterns and need special handling. This trie ensures that such exceptions are correctly identified and processed during domain validation.
-
privateSuffixTrie
Trie for private suffixes.This trie holds private suffixes, which are domain suffixes managed by private entities rather than public registries. These suffixes are used to validate domains that fall under private management, ensuring that they are correctly recognized and validated according to the private suffix rules.
-
privateWildcardTrie
Trie for private wildcards.This trie contains wildcard entries for private suffixes, similar to the registry wildcards but for privately managed domains. It allows for the validation of domains that match wildcard patterns within the private suffix space, providing flexibility and accuracy in the validation process.
-
-
Constructor Details
-
PslData
public PslData()Default constructor for PslData. Initializes the tries for registry suffixes, wildcards, exceptions, private suffixes, and wildcards.The constructor sets up the necessary data structures for PSL validation, ensuring that each trie is properly initialized and ready for use. This setup is crucial for the efficient and accurate validation of domain names against the public and private suffix lists, including handling of wildcards and exceptions.
-