Class BdxlLocator

    • Field Detail

      • GOOGLE_PRIMARY_DNS

        public static InetAddress GOOGLE_PRIMARY_DNS
      • GOOGLE_SECONDARY_DNS

        public static InetAddress GOOGLE_SECONDARY_DNS
      • CLOUDFLARE_PRIMARY_DNS

        public static InetAddress CLOUDFLARE_PRIMARY_DNS
      • CLOUDFLARE_SECONDARY_DNS

        public static InetAddress CLOUDFLARE_SECONDARY_DNS
    • Constructor Detail

      • BdxlLocator

        public BdxlLocator​(Mode mode)
      • BdxlLocator

        public BdxlLocator​(String hostname)
        Initiate a new instance of BDXL lookup functionality using SHA-256 for hashing.
        Parameters:
        hostname - Hostname used as base for lookup.
      • BdxlLocator

        public BdxlLocator​(String hostname,
                           String digestAlgorithm)
        Initiate a new instance of BDXL lookup functionality.
        Parameters:
        hostname - Hostname used as base for lookup.
        digestAlgorithm - Algorithm used for generation of hostname.
      • BdxlLocator

        public BdxlLocator​(String prefix,
                           String hostname,
                           String digestAlgorithm,
                           long timeout,
                           int maxRetries,
                           boolean enablePublicDNS)
        Initiate a new instance of BDXL lookup functionality.
        Parameters:
        prefix - Value attached in front of calculated hash.
        hostname - Hostname used as base for lookup.
        digestAlgorithm - Algorithm used for generation of hostname.
        timeout - Lookup timeout
        maxRetries - Maximum number of retries
        enablePublicDNS - Enable custom DNS lookup
      • BdxlLocator

        public BdxlLocator​(String prefix,
                           String hostname,
                           String digestAlgorithm,
                           com.google.common.io.BaseEncoding encoding,
                           long timeout,
                           int maxRetries,
                           boolean enablePublicDNS)
        Initiate a new instance of BDXL lookup functionality.
        Parameters:
        prefix - Value attached in front of calculated hash.
        hostname - Hostname used as base for lookup.
        digestAlgorithm - Algorithm used for generation of hostname.
        encoding - Encoding of hash for hostname.
        timeout - Lookup timeout
        maxRetries - Maximum number of retries
        enablePublicDNS - Enable custom DNS lookup