Class Certificates
- java.lang.Object
-
- com.dnsimple.endpoints.Certificates
-
public class Certificates extends java.lang.ObjectProvides access to the DNSimple Certificates API.
-
-
Constructor Summary
Constructors Constructor Description Certificates(HttpEndpointClient client)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SimpleResponse<CertificateBundle>downloadCertificate(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId)Get the PEM-encoded certificate, aNumber with the root certificate and intermediate chain.SimpleResponse<Certificate>getCertificate(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId)Get the details of a certificate.SimpleResponse<CertificateBundle>getCertificatePrivateKey(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId)Get the PEM-encoded certificate private key.SimpleResponse<Certificate>issueLetsencryptCertificate(java.lang.Number account, java.lang.String domain, java.lang.Number certificatePurchaseId)Issue a pending Let's Encrypt certificate order.SimpleResponse<Certificate>issueLetsencryptCertificateRenewal(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId, java.lang.Number certificateRenewalId)Issue a pending Let's Encrypt certificate renewal order.PaginatedResponse<Certificate>listCertificates(java.lang.Number account, java.lang.String domain)List certificates for a domain in the account.PaginatedResponse<Certificate>listCertificates(java.lang.Number account, java.lang.String domain, ListOptions options)List certificates for a domain in the account.SimpleResponse<CertificatePurchase>purchaseLetsencryptCertificate(java.lang.Number account, java.lang.String domain, CertificatePurchaseOptions options)Purchase a Let's Encrypt certificate.SimpleResponse<CertificateRenewal>purchaseLetsencryptCertificateRenewal(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId)Purchase a Let's Encrypt certificate renewal.SimpleResponse<CertificateRenewal>purchaseLetsencryptCertificateRenewal(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId, boolean autoRenew)Purchase a Let's Encrypt certificate renewal.
-
-
-
Constructor Detail
-
Certificates
public Certificates(HttpEndpointClient client)
-
-
Method Detail
-
listCertificates
public PaginatedResponse<Certificate> listCertificates(java.lang.Number account, java.lang.String domain)
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:
- https://developer.dnsimple.com/v2/certificates/#listCertificates
-
listCertificates
public PaginatedResponse<Certificate> listCertificates(java.lang.Number account, java.lang.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:
- https://developer.dnsimple.com/v2/certificates/#listCertificates
-
getCertificate
public SimpleResponse<Certificate> getCertificate(java.lang.Number account, java.lang.String domain, java.lang.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:
- https://developer.dnsimple.com/v2/certificates/#getCertificate
-
downloadCertificate
public SimpleResponse<CertificateBundle> downloadCertificate(java.lang.Number account, java.lang.String domain, java.lang.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:
- https://developer.dnsimple.com/v2/certificates/#downloadCertificate
-
getCertificatePrivateKey
public SimpleResponse<CertificateBundle> getCertificatePrivateKey(java.lang.Number account, java.lang.String domain, java.lang.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:
- https://developer.dnsimple.com/v2/certificates/#getCertificatePrivateKey
-
purchaseLetsencryptCertificate
public SimpleResponse<CertificatePurchase> purchaseLetsencryptCertificate(java.lang.Number account, java.lang.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:
- https://developer.dnsimple.com/v2/certificates/#purchaseLetsencryptCertificate
-
issueLetsencryptCertificate
public SimpleResponse<Certificate> issueLetsencryptCertificate(java.lang.Number account, java.lang.String domain, java.lang.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:
- https://developer.dnsimple.com/v2/certificates/#issueLetsencryptCertificate
-
purchaseLetsencryptCertificateRenewal
public SimpleResponse<CertificateRenewal> purchaseLetsencryptCertificateRenewal(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId)
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 ID- Returns:
- The Let's Encrypt purchase renewal response
- See Also:
- https://developer.dnsimple.com/v2/certificates/#purchaseRenewalLetsencryptCertificate
-
purchaseLetsencryptCertificateRenewal
public SimpleResponse<CertificateRenewal> purchaseLetsencryptCertificateRenewal(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId, boolean autoRenew)
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 IDautoRenew- Enable auto-renewal of the certificate- Returns:
- The Let's Encrypt purchase renewal response
- See Also:
- https://developer.dnsimple.com/v2/certificates/#purchaseRenewalLetsencryptCertificate
-
issueLetsencryptCertificateRenewal
public SimpleResponse<Certificate> issueLetsencryptCertificateRenewal(java.lang.Number account, java.lang.String domain, java.lang.Number certificateId, java.lang.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:
- https://developer.dnsimple.com/v2/certificates/#issueRenewalLetsencryptCertificate
-
-