Package com.dnsimple.endpoints
Class Certificates
java.lang.Object
com.dnsimple.endpoints.Certificates
Provides access to the DNSimple Certificates API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadCertificate(Number account, String domain, Number certificateId) Get the PEM-encoded certificate, aNumber with the root certificate and intermediate chain.getCertificate(Number account, String domain, Number certificateId) Get the details of a certificate.getCertificatePrivateKey(Number account, String domain, Number certificateId) Get the PEM-encoded certificate private key.issueLetsencryptCertificate(Number account, String domain, Number certificatePurchaseId) Issue a pending Let's Encrypt certificate order.issueLetsencryptCertificateRenewal(Number account, String domain, Number certificateId, Number certificateRenewalId) Issue a pending Let's Encrypt certificate renewal order.listCertificates(Number account, String domain) List certificates for a domain in the account.listCertificates(Number account, String domain, ListOptions options) List certificates for a domain in the account.purchaseLetsencryptCertificate(Number account, String domain, CertificatePurchaseOptions options) Purchase a Let's Encrypt certificate.purchaseLetsencryptCertificateRenewal(Number account, String domain, Number certificateId, CertificateRenewalPurchaseOptions options) Purchase a Let's Encrypt certificate renewal.
-
Constructor Details
-
Certificates
-
-
Method Details
-
listCertificates
List certificates for a domain in the account.- Parameters:
account- The account IDdomain- The domain name or ID- Returns:
- The list certificates response
- See Also:
-
listCertificates
public PaginatedResponse<Certificate> listCertificates(Number account, String domain, ListOptions options) List certificates for a domain in the account.- Parameters:
account- The account IDdomain- The domain name or IDoptions- The options for the list request- Returns:
- The list certificates response
- See Also:
-
getCertificate
public SimpleResponse<Certificate> getCertificate(Number account, String domain, Number certificateId) Get the details of a certificate.- Parameters:
account- The account IDdomain- The domain name or IDcertificateId- The certificate ID- Returns:
- The get certificate response
- See Also:
-
downloadCertificate
public SimpleResponse<CertificateBundle> downloadCertificate(Number account, String domain, Number certificateId) Get the PEM-encoded certificate, aNumber with the root certificate and intermediate chain.- Parameters:
account- The account IDdomain- The domain name or IDcertificateId- The certificate ID- Returns:
- The download certificate response
- See Also:
-
getCertificatePrivateKey
public SimpleResponse<CertificatePrivateKey> getCertificatePrivateKey(Number account, String domain, Number certificateId) Get the PEM-encoded certificate private key.- Parameters:
account- The account IDdomain- The domain name or IDcertificateId- The certificate ID- Returns:
- The get certificate private key response
- See Also:
-
purchaseLetsencryptCertificate
public SimpleResponse<CertificatePurchase> purchaseLetsencryptCertificate(Number account, String domain, CertificatePurchaseOptions options) Purchase a Let's Encrypt certificate.This method creates a new purchase order. The order ID should be used to request the issuance of the certificate using `#purchase_letsencrypt_certificate`.
- Parameters:
account- The account IDdomain- The domain name or IDoptions- The options for the certificate purchase- Returns:
- The Let's Encrypt purchase response
- See Also:
-
issueLetsencryptCertificate
public SimpleResponse<Certificate> issueLetsencryptCertificate(Number account, String domain, Number certificatePurchaseId) Issue a pending Let's Encrypt certificate order.Note that the issuance process is async. A successful response means the issuance request has been successfully acknowledged and queued for processing.
- Parameters:
account- The account IDdomain- The domain name or IDcertificatePurchaseId- The ID of the purchase order returned by purchaseLetsencryptCertificate- Returns:
- The Let's Encrypt issue response
- See Also:
-
purchaseLetsencryptCertificateRenewal
public SimpleResponse<CertificateRenewal> purchaseLetsencryptCertificateRenewal(Number account, String domain, Number certificateId, CertificateRenewalPurchaseOptions options) Purchase a Let's Encrypt certificate renewal.This method creates a new renewal order. The order ID should be used to request the issuance of the certificate using `#issue_letsencrypt_certificate_renewal`.
- Parameters:
account- The account IDdomain- The domain name or IDcertificateId- The certificate IDoptions- The options for the certificate renewal- Returns:
- The Let's Encrypt purchase renewal response
- See Also:
-
issueLetsencryptCertificateRenewal
public SimpleResponse<Certificate> issueLetsencryptCertificateRenewal(Number account, String domain, Number certificateId, Number certificateRenewalId) Issue a pending Let's Encrypt certificate renewal order.Note that the issuance process is async. A successful response means the issuance request has been successfully acknowledged and queued for processing.
- Parameters:
account- The account IDdomain- The domain name or IDcertificateId- The domain name or IDcertificateRenewalId- The ID of the purchase order returned by purchaseLetsencryptCertificateRenewal- Returns:
- The Let's Encrypt issue response
- See Also:
-