public interface AcmeProvider
AcmeProvider provides methods to be used for communicating with the ACME
server. Implementations handle individual features of each ACME server.
Provider implementations must be registered with Java's ServiceLoader.
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(URI serverUri)
Checks if this provider accepts the given server URI.
|
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. |
JSON |
directory(Session session,
URI serverUri)
Returns the provider's directory.
|
URL |
resolve(URI serverUri)
Resolves the server URI and returns the matching directory URL.
|
boolean accepts(URI serverUri)
serverUri - Server URI to testtrue if this provider accepts the server URI, false
otherwiseURL resolve(URI serverUri)
serverUri - Server URIURLIllegalArgumentException - if the server URI is not acceptedConnection connect()
Connection for communication with the ACME server.Connection that was generatedJSON directory(Session session, URI serverUri) throws AcmeException
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.
session - Session to be usedserverUri - Server URIAcmeExceptionChallenge createChallenge(Session session, String type)
Challenge instance for the given challenge type.
Custom provider implementations may override this method to provide challenges that are unique to the provider.
Copyright © 2015–2019. All rights reserved.