Package org.shredzone.acme4j.connector
Class DummyConnection
java.lang.Object
org.shredzone.acme4j.connector.DummyConnection
- All Implemented Interfaces:
AutoCloseable
,Connection
- Direct Known Subclasses:
TestableConnectionProvider
Dummy implementation of
Connection
that always fails. Single methods are
supposed to be overridden for testing.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getNonce()
void
resetNonce
(Session session) int
sendCertificateRequest
(URL url, Login login) int
sendRequest
(URL url, Session session, ZonedDateTime ifModifiedSince) int
sendSignedPostAsGetRequest
(URL url, Login login) int
sendSignedRequest
(URL url, JSONBuilder claims, Login login) int
sendSignedRequest
(URL url, JSONBuilder claims, Session session, KeyPair keypair) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.shredzone.acme4j.connector.Connection
handleRetryAfter
-
Constructor Details
-
DummyConnection
public DummyConnection()
-
-
Method Details
-
resetNonce
- Specified by:
resetNonce
in interfaceConnection
-
sendRequest
- Specified by:
sendRequest
in interfaceConnection
-
sendCertificateRequest
- Specified by:
sendCertificateRequest
in interfaceConnection
-
sendSignedPostAsGetRequest
- Specified by:
sendSignedPostAsGetRequest
in interfaceConnection
-
sendSignedRequest
- Specified by:
sendSignedRequest
in interfaceConnection
- Throws:
AcmeException
-
sendSignedRequest
- Specified by:
sendSignedRequest
in interfaceConnection
-
readJsonResponse
- Specified by:
readJsonResponse
in interfaceConnection
-
readCertificates
- Specified by:
readCertificates
in interfaceConnection
-
getRetryAfter
- Specified by:
getRetryAfter
in interfaceConnection
-
getNonce
- Specified by:
getNonce
in interfaceConnection
-
getLocation
- Specified by:
getLocation
in interfaceConnection
-
getLastModified
- Specified by:
getLastModified
in interfaceConnection
-
getExpiration
- Specified by:
getExpiration
in interfaceConnection
-
getLinks
- Specified by:
getLinks
in interfaceConnection
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceConnection
-