- Alle bekannten Implementierungsklassen:
AbstractAcmeProvider,GenericAcmeProvider
public interface AcmeProvider
An
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbooleanChecks if this provider accepts the given server URI.connect(URI serverUri, NetworkSettings networkSettings) Creates aConnectionfor communication with the ACME server.createChallenge(Login login, JSON data) Creates aChallengeinstance for the given challenge data.Returns the provider's directory.Returns a proposal for the EAB MAC algorithm to be used.Resolves the server URI and returns the matching directory URL.
-
Methodendetails
-
accepts
Checks if this provider accepts the given server URI.- Parameter:
serverUri- Server URI to test- Gibt zurück:
trueif this provider accepts the server URI,falseotherwise
-
resolve
Resolves the server URI and returns the matching directory URL.- Parameter:
serverUri- ServerURI- Gibt zurück:
- Resolved directory
URL - Löst aus:
IllegalArgumentException- if the serverURIis not accepted
-
connect
Creates aConnectionfor communication with the ACME server.- Parameter:
serverUri- ServerURInetworkSettings-NetworkSettingsto be used for the connection- Gibt zurück:
Connectionthat was generated
-
directory
Returns the provider's directory. The structure must contain resource URLs, and may optionally contain metadata.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.
- Parameter:
session-Sessionto be usedserverUri- ServerURI- Gibt zurück:
- Directory data, as JSON object, or
nullif the directory has not been changed since the last request. - Löst aus:
AcmeException
-
createChallenge
Creates aChallengeinstance for the given challenge data. -
getProposedEabMacAlgorithm
Returns a proposal for the EAB MAC algorithm to be used. Only set if the CA requires External Account Binding and the MAC algorithm cannot be correctly derived from the MAC key. Empty otherwise.- Gibt zurück:
- Proposed MAC algorithm to be used for EAB, or empty for the default behavior.
- Seit:
- 3.5.0
-