Class AcmeMetadata.Builder

java.lang.Object
org.wildfly.security.x500.cert.acme.AcmeMetadata.Builder
Enclosing class:
AcmeMetadata

public static class AcmeMetadata.Builder extends Object
  • Method Details

    • setTermsOfServiceUrl

      public AcmeMetadata.Builder setTermsOfServiceUrl(String termsOfServiceUrl)
      Set the terms of service URL.
      Parameters:
      termsOfServiceUrl - the terms of service URL (must not be null)
      Returns:
      this builder instance
    • setWebsiteUrl

      public AcmeMetadata.Builder setWebsiteUrl(String websiteUrl)
      Set the website URL.
      Parameters:
      websiteUrl - the website URL (must not be null)
      Returns:
      this builder instance
    • setCaaIdentities

      public AcmeMetadata.Builder setCaaIdentities(String[] caaIdentities)
      Set the CAA identities.
      Parameters:
      caaIdentities - the CAA identities (must not be null)
      Returns:
      this builder instance
    • setExternalAccountRequired

      public AcmeMetadata.Builder setExternalAccountRequired(boolean externalAccountRequired)
      Set whether or not an external account is required.
      Parameters:
      externalAccountRequired - true if an external account is required and false otherwise
      Returns:
      this builder instance
    • build

      public AcmeMetadata build() throws IllegalArgumentException
      Create the ACME metadata.
      Returns:
      the newly created ACME metadata
      Throws:
      IllegalArgumentException