Package io.micronaut.acme.events
Class CertificateEvent
java.lang.Object
io.micronaut.acme.events.CertificateEvent
Event used to alert when a new ACME certificate is ready for use.
-
Constructor Summary
ConstructorDescriptionCertificateEvent
(KeyPair domainKeyPair, boolean validationCert, X509Certificate... fullCertificateChain) Creates a new CertificateEvent containing the full certificate chain. -
Method Summary
Modifier and TypeMethodDescriptiongetCert()
@NonNull X509Certificate[]
Return the full certificate chain.boolean
-
Constructor Details
-
CertificateEvent
public CertificateEvent(KeyPair domainKeyPair, boolean validationCert, X509Certificate... fullCertificateChain) Creates a new CertificateEvent containing the full certificate chain.- Parameters:
domainKeyPair
- key pair used to encrypt the certificatevalidationCert
- if this certificate is to be used for tls-apln-01 account validationfullCertificateChain
- X509 certificate file
-
-
Method Details
-
getCert
- Returns:
- Certificate created by ACME server
-
getDomainKeyPair
- Returns:
- KeyPair used to encrypt the certificate.
-
isValidationCert
public boolean isValidationCert()- Returns:
- if this is a validation certificate to be used for tls-apln-01 account validation
-
getFullCertificateChain
Return the full certificate chain.- Returns:
- array of certificates in the chain.
-