Class CSCertificateTaskContext
java.lang.Object
com.io7m.certusine.vanilla.internal.tasks.CSCertificateTaskContext
The execution context for a task.
-
Constructor Summary
ConstructorsConstructorDescriptionCSCertificateTaskContext(CSStrings inStrings, CSOptions inOptions, CSCertificateStoreType inCertificateStore, Clock inClock, CSDomain inDomain, CSCertificate inCertificate, int inRetryAttemptsMax, CSDNSQueriesFactoryType inDnsQueries) The execution context for a task. -
Method Summary
Modifier and TypeMethodDescriptionclock()voiddnsRecordCreated(String name, String text) A DNS record was created.domain()formatProblem(org.shredzone.acme4j.Problem error) Format a problem report as text.now()options()booleanretryAttemptsExhausted(int retryAttempts) intstrings()
-
Constructor Details
-
CSCertificateTaskContext
public CSCertificateTaskContext(CSStrings inStrings, CSOptions inOptions, CSCertificateStoreType inCertificateStore, Clock inClock, CSDomain inDomain, CSCertificate inCertificate, int inRetryAttemptsMax, CSDNSQueriesFactoryType inDnsQueries) The execution context for a task.- Parameters:
inStrings- The string resourcesinClock- The clockinCertificateStore- The certificate storeinOptions- The optionsinDomain- The domaininCertificate- The certificateinDnsQueries- The DNS query factoryinRetryAttemptsMax- The maximum number of retry attempts
-
-
Method Details
-
certificateStore
- Returns:
- The certificate store used during execution
-
now
- Returns:
- The current time
-
clock
- Returns:
- The clock used for time operations
-
dnsQueries
- Returns:
- A factory of DNS queries
-
options
- Returns:
- The configuration options
-
strings
- Returns:
- The string resources
-
domain
- Returns:
- The current domain
-
certificate
- Returns:
- The current certificate being processed
-
retryAttemptsMax
public int retryAttemptsMax()- Returns:
- The maximum number of times a task can be retried
-
dnsRecordCreated
A DNS record was created.- Parameters:
name- The record nametext- The record text
-
dnsRecordsCreated
- Returns:
- The list of DNS TXT records created during execution
-
retryAttemptsExhausted
public boolean retryAttemptsExhausted(int retryAttempts) - Parameters:
retryAttempts- The number of times a task has been retried- Returns:
trueif the given number of retry attempts exceeds the allowed number
-
formatProblem
Format a problem report as text.- Parameters:
error- The report- Returns:
- The formatted report
-