@ConfigurationProperties(value="acme")
public class AcmeConfiguration
extends java.lang.Object
implements io.micronaut.core.util.Toggleable
Modifier and Type | Class and Description |
---|---|
static class |
AcmeConfiguration.AuthConfiguration
Allows the configuration of the Acme certificate authentication process.
|
static class |
AcmeConfiguration.ChallengeType
Defines the type of valid challenges.
|
static class |
AcmeConfiguration.OrderConfiguration
Allows the configuration of the Acme certificate ordering process.
|
Constructor and Description |
---|
AcmeConfiguration() |
Modifier and Type | Method and Description |
---|---|
@NotBlank @NotNull java.lang.String |
getAccountKey()
Account key used to authenticate with the ACME server.
|
@NotBlank @NotNull java.lang.String |
getAcmeServer()
Gets the acme server to authenticate and order the certificate from.
|
AcmeConfiguration.AuthConfiguration |
getAuth()
Get authentication configuration.
|
java.io.File |
getCertLocation()
Gets the location to save the certificate on disk to.
|
AcmeConfiguration.ChallengeType |
getChallengeType()
Get the challenge type to be used to validate the account.
|
@NotBlank @NotNull java.lang.String |
getDomain()
Gets the domain in which the certificate will be ordered for.
|
@NotBlank @NotNull java.lang.String |
getDomainKey()
Key in which to be used to generate the CSR which will be used to order the certificate from the ACME server.
|
java.lang.Integer |
getHttpChallengeServerPort()
Gets the current http challenge server port.
|
AcmeConfiguration.OrderConfiguration |
getOrder()
Get order configuration.
|
java.time.Duration |
getRenewWitin()
Get the duration in which you would like to renew the certificate within.
|
boolean |
isEnabled()
If acme certificate background and setup process should be enabled.
|
boolean |
isTosAgree()
Get whether or not you agree to the terms of service for ACME services to work.
|
void |
setAccountKey(java.lang.String accountKey)
Sets the account key used for authentication.
|
void |
setAcmeServer(java.lang.String acmeServer)
Sets the acme server to authenticate and order the certificate from.
|
void |
setAuth(AcmeConfiguration.AuthConfiguration auth)
Set authentication configuration.
|
void |
setCertLocation(java.io.File certLocation)
Sets the location to save the certificate on disk to.
|
void |
setChallengeType(AcmeConfiguration.ChallengeType challengeType)
Set the challenge type to be used to validate the account.
|
void |
setDomain(java.lang.String domain)
Sets the domain in which to order the certificate for.
|
void |
setDomainKey(java.lang.String domainKey)
Sets the key string in which to be used to generate the CSR which will be used to order the certificate from the ACME server.
|
void |
setEnabled(boolean enabled)
Sets if acme certificate backgroun and setup process is enabled.
|
void |
setHttpChallengeServerPort(java.lang.Integer httpChallengeServerPort)
Sets the port to start the http challenge server on.
|
void |
setOrder(AcmeConfiguration.OrderConfiguration order)
Set the order configuration.
|
void |
setRenewWitin(java.time.Duration renewWitin)
Sets the duration in which the application will trigger the renew process to get a new certificate.
|
void |
setTosAgree(boolean tosAgree)
Sets whether or not you agree to the terms of service.
|
public boolean isEnabled()
isEnabled
in interface io.micronaut.core.util.Toggleable
public void setEnabled(boolean enabled)
enabled
- The enablement flag@Nonnull @NotBlank @NotNull public @NotBlank @NotNull java.lang.String getDomain()
public void setDomain(java.lang.String domain)
domain
- the domain name to be requestedpublic boolean isTosAgree()
public void setTosAgree(boolean tosAgree)
tosAgree
- true/false if you agree to the terms of service@Nonnull public java.time.Duration getRenewWitin()
public void setRenewWitin(@Nonnull java.time.Duration renewWitin)
renewWitin
- duration before rene process startedpublic AcmeConfiguration.OrderConfiguration getOrder()
public void setOrder(AcmeConfiguration.OrderConfiguration order)
order
- order configurationpublic AcmeConfiguration.AuthConfiguration getAuth()
public void setAuth(AcmeConfiguration.AuthConfiguration auth)
auth
- authentication configuration@Nonnull @NotBlank @NotNull public @NotBlank @NotNull java.lang.String getAccountKey()
public void setAccountKey(@Nonnull java.lang.String accountKey)
accountKey
- account key string@Nonnull @NotBlank @NotNull public @NotBlank @NotNull java.lang.String getDomainKey()
public void setDomainKey(@Nonnull java.lang.String domainKey)
domainKey
- key string@Nonnull public java.io.File getCertLocation()
public void setCertLocation(@Nonnull java.io.File certLocation)
certLocation
- location to certificate@Nonnull @NotBlank @NotNull public @NotBlank @NotNull java.lang.String getAcmeServer()
public void setAcmeServer(@Nonnull java.lang.String acmeServer)
acmeServer
- url of acme serverpublic AcmeConfiguration.ChallengeType getChallengeType()
public void setChallengeType(AcmeConfiguration.ChallengeType challengeType)
challengeType
- challenge type to be usedpublic java.lang.Integer getHttpChallengeServerPort()
public void setHttpChallengeServerPort(java.lang.Integer httpChallengeServerPort)
httpChallengeServerPort
- expected http challenge server port