public abstract class AbstractAcmeProvider extends Object implements AcmeProvider
AcmeProvider. It consists of a challenge
registry and a standard HttpConnector.
Implementing classes must implement at least AcmeProvider.accepts(URI)
and AcmeProvider.resolve(URI).
| Constructor and Description |
|---|
AbstractAcmeProvider() |
| Modifier and Type | Method and Description |
|---|---|
Connection |
connect()
Creates a
Connection for communication with the ACME server. |
Challenge |
createChallenge(Session session,
String type)
Creates a
Challenge instance for the given challenge type. |
protected HttpConnector |
createHttpConnector()
Creates a
HttpConnector. |
JSON |
directory(Session session,
URI serverUri)
Returns the provider's directory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaccepts, resolvepublic AbstractAcmeProvider()
public Connection connect()
AcmeProviderConnection for communication with the ACME server.connect in interface AcmeProviderConnection that was generatedpublic JSON directory(Session session, URI serverUri) throws AcmeException
AcmeProviderThe default implementation resolves the server URI and fetches the directory via HTTP request. Subclasses may override this method, e.g. if the directory is static.
directory in interface AcmeProvidersession - Session to be usedserverUri - Server URIAcmeExceptionpublic Challenge createChallenge(Session session, String type)
AcmeProviderChallenge instance for the given challenge type.
Custom provider implementations may override this method to provide challenges that are unique to the provider.
createChallenge in interface AcmeProvidersession - Session to bind the challenge totype - Challenge typeChallenge instanceprotected HttpConnector createHttpConnector()
HttpConnector.
Subclasses may override this method to configure the HttpConnector.
Copyright © 2015–2019. All rights reserved.