Class GenericAcmeProvider

java.lang.Object
org.shredzone.acme4j.provider.AbstractAcmeProvider
org.shredzone.acme4j.provider.GenericAcmeProvider
All Implemented Interfaces:
AcmeProvider

public class GenericAcmeProvider
extends AbstractAcmeProvider
A generic AcmeProvider. It should be working for all ACME servers complying to the ACME specifications.

The serverUri is either a http or https URI to the server's directory service.

  • Constructor Summary

    Constructors
    Constructor Description
    GenericAcmeProvider()  
  • Method Summary

    Modifier and Type Method Description
    boolean accepts​(java.net.URI serverUri)
    Checks if this provider accepts the given server URI.
    java.net.URL resolve​(java.net.URI serverUri)
    Resolves the server URI and returns the matching directory URL.

    Methods inherited from class org.shredzone.acme4j.provider.AbstractAcmeProvider

    connect, createChallenge, createHttpConnector, directory

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • accepts

      public boolean accepts​(java.net.URI serverUri)
      Description copied from interface: AcmeProvider
      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

      public java.net.URL resolve​(java.net.URI serverUri)
      Description copied from interface: AcmeProvider
      Resolves the server URI and returns the matching directory URL.
      Parameters:
      serverUri - Server URI
      Returns:
      Resolved directory URL