Class BammBammClient

    • Constructor Detail

      • BammBammClient

        public BammBammClient​(String baseUrl)
        Creates a new BammBamm client.
        Parameters:
        baseUrl - Base URL of the pebble-challtestsrv server to connect to.
    • Method Detail

      • dnsAddARecord

        public void dnsAddARecord​(String domain,
                                  String ip)
                           throws IOException
        Adds an A Record to the DNS. Only one A Record is supported per domain. If another A Record is set, it will replace the existing one.
        Parameters:
        domain - Domain of the A Record
        ip - IP address or domain name. If a domain name is used, it will be resolved and the IP will be used.
        Throws:
        IOException
      • dnsAddTxtRecord

        public void dnsAddTxtRecord​(String domain,
                                    String txt)
                             throws IOException
        Adds a TXT Record to the DNS. Only one TXT Record is supported per domain. If another TXT Record is set, it will replace the existing one.
        Parameters:
        domain - Domain to add the TXT Record to
        txt - TXT record to add
        Throws:
        IOException
      • tlsAlpnAddCertificate

        public void tlsAlpnAddCertificate​(String domain,
                                          String keyauth)
                                   throws IOException
        Adds a certificate for TLS-ALPN tests.
        Parameters:
        domain - Certificate domain to be added
        keyauth - Key authorization to be used for validation
        Throws:
        IOException