java.lang.Object
org.shredzone.acme4j.it.BammBammClient
The BammBamm client connects to the pebble-challtestsrv.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
dnsAddARecord
(String domain, String ip) Adds an A Record to the DNS.void
dnsAddCnameRecord
(String domain, String cname) Adds a CNAME Record to the DNS.void
dnsAddServFailRecord
(String domain) Simulates a SERVFAIL for the given domain.void
dnsAddTxtRecord
(String domain, String txt) Adds a TXT Record to the DNS.void
dnsRemoveARecord
(String domain) Removes an A Record from the DNS.void
dnsRemoveCnameRecord
(String domain) Removes a CNAME Record from the DNS.void
dnsRemoveServFailRecord
(String domain) Removes a SERVFAIL Record from the DNS.void
dnsRemoveTxtRecord
(String domain) Removes a TXT Record from the DNS.void
httpAddToken
(String token, String challenge) Adds a HTTP token.void
httpRemoveToken
(String token) Removes a HTTP token.void
tlsAlpnAddCertificate
(String domain, String keyauth) Adds a certificate for TLS-ALPN tests.void
tlsAlpnRemoveCertificate
(String domain) Removes a certificate.
-
Constructor Details
-
BammBammClient
Creates a new BammBamm client.- Parameters:
baseUrl
- Base URL of the pebble-challtestsrv server to connect to.
-
-
Method Details
-
httpAddToken
Adds a HTTP token.- Parameters:
token
- Token to addchallenge
- Challenge to respond with- Throws:
IOException
-
httpRemoveToken
Removes a HTTP token.- Parameters:
token
- Token to remove- Throws:
IOException
-
dnsAddARecord
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 Recordip
- IP address or domain name. If a domain name is used, it will be resolved and the IP will be used.- Throws:
IOException
-
dnsRemoveARecord
Removes an A Record from the DNS.- Parameters:
domain
- Domain to remove the A Record from- Throws:
IOException
-
dnsAddTxtRecord
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 name to add the TXT Record totxt
- TXT record to add- Throws:
IOException
-
dnsRemoveTxtRecord
Removes a TXT Record from the DNS.- Parameters:
domain
- Domain to remove the TXT Record from- Throws:
IOException
-
dnsAddCnameRecord
Adds a CNAME Record to the DNS. Only one CNAME Record is supported per domain. If another CNAME Record is set, it will replace the existing one.- Parameters:
domain
- Domain to add the CNAME Record tocname
- CNAME Record to add- Throws:
IOException
- Since:
- 2.9
-
dnsRemoveCnameRecord
Removes a CNAME Record from the DNS.- Parameters:
domain
- Domain to remove the CNAME Record from- Throws:
IOException
- Since:
- 2.9
-
dnsAddServFailRecord
Simulates a SERVFAIL for the given domain.- Parameters:
domain
- Domain that will give a SERVFAIL response- Throws:
IOException
- Since:
- 2.9
-
dnsRemoveServFailRecord
Removes a SERVFAIL Record from the DNS.- Parameters:
domain
- Domain to remove the SEVFAIL Record from- Throws:
IOException
- Since:
- 2.9
-
tlsAlpnAddCertificate
Adds a certificate for TLS-ALPN tests.- Parameters:
domain
- Certificate domain to be addedkeyauth
- Key authorization to be used for validation- Throws:
IOException
-
tlsAlpnRemoveCertificate
Removes a certificate.- Parameters:
domain
- Certificate domain to be removed- Throws:
IOException
-