java.lang.Object
org.shredzone.acme4j.it.BammBammClient
The BammBamm client connects to the pebble-challtestsrv.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoiddnsAddARecord(String domain, String ip) Adds an A Record to the DNS.voiddnsAddCnameRecord(String domain, String cname) Adds a CNAME Record to the DNS.voiddnsAddServFailRecord(String domain) Simulates a SERVFAIL for the given domain.voiddnsAddTxtRecord(String domain, String txt) Adds a TXT Record to the DNS.voiddnsRemoveARecord(String domain) Removes an A Record from the DNS.voiddnsRemoveCnameRecord(String domain) Removes a CNAME Record from the DNS.voiddnsRemoveServFailRecord(String domain) Removes a SERVFAIL Record from the DNS.voiddnsRemoveTxtRecord(String domain) Removes a TXT Record from the DNS.voidhttpAddToken(String token, String challenge) Adds a HTTP token.voidhttpRemoveToken(String token) Removes a HTTP token.voidtlsAlpnAddCertificate(String domain, String keyauth) Adds a certificate for TLS-ALPN tests.voidtlsAlpnRemoveCertificate(String domain) Removes a certificate.
-
Konstruktordetails
-
BammBammClient
Creates a new BammBamm client.- Parameter:
baseUrl- Base URL of the pebble-challtestsrv server to connect to.
-
-
Methodendetails
-
httpAddToken
Adds a HTTP token.- Parameter:
token- Token to addchallenge- Challenge to respond with- Löst aus:
IOException
-
httpRemoveToken
Removes a HTTP token.- Parameter:
token- Token to remove- Löst aus:
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.- Parameter:
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.- Löst aus:
IOException
-
dnsRemoveARecord
Removes an A Record from the DNS.- Parameter:
domain- Domain to remove the A Record from- Löst aus:
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.- Parameter:
domain- Domain name to add the TXT Record totxt- TXT record to add- Löst aus:
IOException
-
dnsRemoveTxtRecord
Removes a TXT Record from the DNS.- Parameter:
domain- Domain to remove the TXT Record from- Löst aus:
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.- Parameter:
domain- Domain to add the CNAME Record tocname- CNAME Record to add- Löst aus:
IOException- Seit:
- 2.9
-
dnsRemoveCnameRecord
Removes a CNAME Record from the DNS.- Parameter:
domain- Domain to remove the CNAME Record from- Löst aus:
IOException- Seit:
- 2.9
-
dnsAddServFailRecord
Simulates a SERVFAIL for the given domain.- Parameter:
domain- Domain that will give a SERVFAIL response- Löst aus:
IOException- Seit:
- 2.9
-
dnsRemoveServFailRecord
Removes a SERVFAIL Record from the DNS.- Parameter:
domain- Domain to remove the SEVFAIL Record from- Löst aus:
IOException- Seit:
- 2.9
-
tlsAlpnAddCertificate
Adds a certificate for TLS-ALPN tests.- Parameter:
domain- Certificate domain to be addedkeyauth- Key authorization to be used for validation- Löst aus:
IOException
-
tlsAlpnRemoveCertificate
Removes a certificate.- Parameter:
domain- Certificate domain to be removed- Löst aus:
IOException
-