Class AcmeMetadata.Builder
- java.lang.Object
-
- org.wildfly.security.x500.cert.acme.AcmeMetadata.Builder
-
- Enclosing class:
- AcmeMetadata
public static class AcmeMetadata.Builder extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private String[]caaIdentitiesprivate booleanexternalAccountRequiredprivate StringtermsOfServiceUrlprivate StringwebsiteUrl
-
Constructor Summary
Constructors Constructor Description Builder()Construct a new uninitialized instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcmeMetadatabuild()Create the ACME metadata.AcmeMetadata.BuildersetCaaIdentities(String[] caaIdentities)Set the CAA identities.AcmeMetadata.BuildersetExternalAccountRequired(boolean externalAccountRequired)Set whether or not an external account is required.AcmeMetadata.BuildersetTermsOfServiceUrl(String termsOfServiceUrl)Set the terms of service URL.AcmeMetadata.BuildersetWebsiteUrl(String websiteUrl)Set the website URL.
-
-
-
Method Detail
-
setTermsOfServiceUrl
public AcmeMetadata.Builder setTermsOfServiceUrl(String termsOfServiceUrl)
Set the terms of service URL.- Parameters:
termsOfServiceUrl- the terms of service URL (must not benull)- Returns:
- this builder instance
-
setWebsiteUrl
public AcmeMetadata.Builder setWebsiteUrl(String websiteUrl)
Set the website URL.- Parameters:
websiteUrl- the website URL (must not benull)- Returns:
- this builder instance
-
setCaaIdentities
public AcmeMetadata.Builder setCaaIdentities(String[] caaIdentities)
Set the CAA identities.- Parameters:
caaIdentities- the CAA identities (must not benull)- Returns:
- this builder instance
-
setExternalAccountRequired
public AcmeMetadata.Builder setExternalAccountRequired(boolean externalAccountRequired)
Set whether or not an external account is required.- Parameters:
externalAccountRequired-trueif an external account is required andfalseotherwise- Returns:
- this builder instance
-
build
public AcmeMetadata build() throws IllegalArgumentException
Create the ACME metadata.- Returns:
- the newly created ACME metadata
- Throws:
IllegalArgumentException
-
-