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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCancels an auto-renewing order.voidexecute(byte[] csr) Finalizes the order, by providing a CSR.Gets theAuthorizationrequired for this order, in no specific order.Gets the STAR extension'sCertificateif 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 theCertificateif it is available.getError()Returns aProblemdocument if the order failed.Gets the expiry date of the authorization, if set by the server.Gets the locationURLof where to send the finalization call to.Gets the list ofIdentifierto 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.booleanReturnstrueif STAR certificates from this order can also be fetched via GET requests.booleanChecks if this order is auto-renewing, according to the ACME STAR specifications.Methods inherited from class org.shredzone.acme4j.AcmeJsonResource
getJSON, invalidate, isValid, setJSON, updateMethods 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 aProblemdocument if the order failed. -
getExpires
Gets the expiry date of the authorization, if set by the server. -
getIdentifiers
Gets the list ofIdentifierto 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 theAuthorizationrequired for this order, in no specific order. -
getFinalizeLocation
Gets the locationURLof where to send the finalization call to.For internal purposes. Use
execute(byte[])to finalize an order. -
getCertificate
Gets theCertificateif it is available.nullotherwise. -
getAutoRenewalCertificate
Gets the STAR extension'sCertificateif it is available.nullotherwise.- 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
Returnstrueif 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
-