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, wait
accepts, resolve
public AbstractAcmeProvider()
public Connection connect()
AcmeProvider
Connection
for communication with the ACME server.connect
in interface AcmeProvider
Connection
that was generatedpublic JSON directory(Session session, URI serverUri) throws AcmeException
AcmeProvider
The 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 AcmeProvider
session
- Session
to be usedserverUri
- Server URI
AcmeException
public Challenge createChallenge(Session session, String type)
AcmeProvider
Challenge
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 AcmeProvider
session
- 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.