Class OrderBuilder

    • Method Detail

      • domain

        public OrderBuilder domain​(String domain)
        Adds a domain name to the order.
        Parameters:
        domain - Name of a domain to be ordered. May be a wildcard domain if supported by the CA. IDN names are accepted and will be ACE encoded automatically.
        Returns:
        itself
      • domains

        public OrderBuilder domains​(String... domains)
        Adds domain names to the order.
        Parameters:
        domains - Collection of domain names to be ordered. May be wildcard domains if supported by the CA. IDN names are accepted and will be ACE encoded automatically.
        Returns:
        itself
      • domains

        public OrderBuilder domains​(Collection<String> domains)
        Adds a collection of domain names to the order.
        Parameters:
        domains - Collection of domain names to be ordered. May be wildcard domains if supported by the CA. IDN names are accepted and will be ACE encoded automatically.
        Returns:
        itself
      • notBefore

        public OrderBuilder notBefore​(Instant notBefore)
        Sets a "not before" date in the certificate. May be ignored by the CA.
        Parameters:
        notBefore - "not before" date
        Returns:
        itself
      • notAfter

        public OrderBuilder notAfter​(Instant notAfter)
        Sets a "not after" date in the certificate. May be ignored by the CA.
        Parameters:
        notAfter - "not after" date
        Returns:
        itself
      • recurrentStart

        public OrderBuilder recurrentStart​(Instant start)
        Sets the earliest date of validity of the first issued certificate. If not set, the start date is the earliest possible date.

        Implies recurrent().

        Parameters:
        start - Start date of validity
        Returns:
        itself
        Since:
        2.3
      • recurrentCertificatePredate

        public OrderBuilder recurrentCertificatePredate​(Duration duration)
        Sets the amount of pre-dating each certificate. If not set, the CA's default (0) is used.

        Implies recurrent().

        Parameters:
        duration - Duration of certificate pre-dating
        Returns:
        itself
        Since:
        2.7
      • recurrentEnableGet

        public OrderBuilder recurrentEnableGet()
        Announces that the client wishes to fetch the recurring certificate via GET request. If not used, the STAR certificate can only be fetched via POST-as-GET request. Metadata.isStarCertificateGetAllowed() must return true in order for this option to work.

        This option is only needed if you plan to fetch the STAR certificate via other means than by using acme4j.

        Implies recurrent().

        Returns:
        itself
        Since:
        2.6