java.lang.Object
org.shredzone.acme4j.AcmeResource
org.shredzone.acme4j.AcmeJsonResource
org.shredzone.acme4j.Order
- All Implemented Interfaces:
Serializable
Represents a certificate order.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Cancels an auto-renewing order.void
execute
(byte[] csr) Finalizes the order, by providing a CSR.Gets theAuthorization
required for this order, in no specific order.Gets the STAR extension'sCertificate
if it is available.Returns the latest date of validity of the last certificate issued, ornull
.Returns the maximum lifetime of each certificate, ornull
.Returns the predate period of each certificate, ornull
.Returns the earliest date of validity of the first certificate issued, ornull
.Gets theCertificate
if it is available.getError()
Returns aProblem
document if the order failed.Gets the expiry date of the authorization, if set by the server.Gets the locationURL
of where to send the finalization call to.Gets the list ofIdentifier
to be ordered.Gets the "not after" date that was used for the order, ornull
.Gets the "not before" date that was used for the order, ornull
.Returns the current status of the order.boolean
Returnstrue
if STAR certificates from this order can also be fetched via GET requests.boolean
Checks if this order is auto-renewing, according to the ACME STAR specifications.Methods inherited from class org.shredzone.acme4j.AcmeJsonResource
getJSON, invalidate, isValid, setJSON, update
Methods inherited from class org.shredzone.acme4j.AcmeResource
getLocation, getLogin, getSession, rebind
-
Constructor Details
-
Order
-
-
Method Details
-
getStatus
Returns the current status of the order.Possible values are:
Status.PENDING
,Status.READY
,Status.PROCESSING
,Status.VALID
,Status.INVALID
. -
getError
Returns aProblem
document if the order failed. -
getExpires
Gets the expiry date of the authorization, if set by the server. -
getIdentifiers
Gets the list ofIdentifier
to be ordered.- Since:
- 2.3
-
getNotBefore
Gets the "not before" date that was used for the order, ornull
. -
getNotAfter
Gets the "not after" date that was used for the order, ornull
. -
getAuthorizations
Gets theAuthorization
required for this order, in no specific order. -
getFinalizeLocation
Gets the locationURL
of where to send the finalization call to.For internal purposes. Use
execute(byte[])
to finalize an order. -
getCertificate
Gets theCertificate
if it is available.null
otherwise. -
getAutoRenewalCertificate
Gets the STAR extension'sCertificate
if it is available.null
otherwise.- Since:
- 2.6
-
execute
Finalizes the order, by providing a CSR.After a successful finalization, the certificate is available at
getCertificate()
.Even though the ACME protocol uses the term "finalize an order", this method is called
execute(byte[])
to avoid confusion with the generalObject.finalize()
method.- Parameters:
csr
- CSR containing the parameters for the certificate being requested, in DER format- Throws:
AcmeException
-
isAutoRenewing
Checks if this order is auto-renewing, according to the ACME STAR specifications.- Since:
- 2.3
-
getAutoRenewalStartDate
Returns the earliest date of validity of the first certificate issued, ornull
.- Since:
- 2.3
-
getAutoRenewalEndDate
Returns the latest date of validity of the last certificate issued, ornull
.- Since:
- 2.3
-
getAutoRenewalLifetime
Returns the maximum lifetime of each certificate, ornull
.- Since:
- 2.3
-
getAutoRenewalLifetimeAdjust
Returns the predate period of each certificate, ornull
.- Since:
- 2.7
-
isAutoRenewalGetEnabled
Returnstrue
if STAR certificates from this order can also be fetched via GET requests.- Since:
- 2.6
-
cancelAutoRenewal
Cancels an auto-renewing order.- Throws:
AcmeException
- Since:
- 2.3
-