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[]
caaIdentities
private boolean
externalAccountRequired
private String
termsOfServiceUrl
private String
websiteUrl
-
Constructor Summary
Constructors Constructor Description Builder()
Construct a new uninitialized instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AcmeMetadata
build()
Create the ACME metadata.AcmeMetadata.Builder
setCaaIdentities(String[] caaIdentities)
Set the CAA identities.AcmeMetadata.Builder
setExternalAccountRequired(boolean externalAccountRequired)
Set whether or not an external account is required.AcmeMetadata.Builder
setTermsOfServiceUrl(String termsOfServiceUrl)
Set the terms of service URL.AcmeMetadata.Builder
setWebsiteUrl(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
-true
if an external account is required andfalse
otherwise- Returns:
- this builder instance
-
build
public AcmeMetadata build() throws IllegalArgumentException
Create the ACME metadata.- Returns:
- the newly created ACME metadata
- Throws:
IllegalArgumentException
-
-