java.lang.Object
org.shredzone.acme4j.provider.AbstractAcmeProvider
- Alle implementierten Schnittstellen:
AcmeProvider
- Bekannte direkte Unterklassen:
GenericAcmeProvider
Abstract implementation of
AcmeProvider. It consists of a challenge
registry and a standard HttpConnector.
Implementing classes must implement at least AcmeProvider.accepts(URI)
and AcmeProvider.resolve(URI).
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungconnect(URI serverUri, NetworkSettings networkSettings) Creates aConnectionfor communication with the ACME server.createChallenge(Login login, JSON data) Creates aChallengeinstance for the given challenge data.protected HttpConnectorcreateHttpConnector(NetworkSettings settings) Creates aHttpConnector.Returns the provider's directory.Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden org.shredzone.acme4j.provider.AcmeProvider
accepts, getProposedEabMacAlgorithm, resolve
-
Konstruktordetails
-
AbstractAcmeProvider
public AbstractAcmeProvider()
-
-
Methodendetails
-
connect
Beschreibung aus Schnittstelle kopiert:AcmeProviderCreates aConnectionfor communication with the ACME server.- Angegeben von:
connectin SchnittstelleAcmeProvider- Parameter:
serverUri- ServerURInetworkSettings-NetworkSettingsto be used for the connection- Gibt zurück:
Connectionthat was generated
-
directory
Beschreibung aus Schnittstelle kopiert:AcmeProviderReturns 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.
- Angegeben von:
directoryin SchnittstelleAcmeProvider- 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.This implementation handles the standard challenge types. For unknown types, generic
ChallengeorTokenChallengeinstances are created.Custom provider implementations may override this method to provide challenges that are proprietary to the provider.
- Angegeben von:
createChallengein SchnittstelleAcmeProvider- Parameter:
login-Loginto bind the challenge todata- ChallengeJSONdata- Gibt zurück:
Challengeinstance, ornullif this provider is unable to generate a matchingChallengeinstance.
-
createHttpConnector
Creates aHttpConnector.Subclasses may override this method to configure the
HttpConnector.
-