Interface AcmeProvider

    • Method Detail

      • accepts

        boolean accepts​(URI serverUri)
        Checks if this provider accepts the given server URI.
        Parameters:
        serverUri - Server URI to test
        Returns:
        true if this provider accepts the server URI, false otherwise
      • resolve

        URL resolve​(URI serverUri)
        Resolves the server URI and returns the matching directory URL.
        Parameters:
        serverUri - Server URI
        Returns:
        Resolved directory URL
        Throws:
        IllegalArgumentException - if the server URI is not accepted
      • directory

        JSON directory​(Session session,
                       URI serverUri)
                throws AcmeException
        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.

        Parameters:
        session - Session to be used
        serverUri - Server URI
        Returns:
        Directory data, as JSON object
        Throws:
        AcmeException