Class OracleCloudCertificateService
java.lang.Object
io.micronaut.oraclecloud.certificates.services.OracleCloudCertificateService
@Singleton
@Requires(classes=com.oracle.bmc.certificates.Certificates.class) @Requires(beans=com.oracle.bmc.certificates.Certificates.class) @Requires(property="oci.certificates.enabled",value="true")
public class OracleCloudCertificateService
extends Object
Service to contact an Oracle Cloud Certificate service and setup a certificate on a given basis.
-
Constructor Summary
ConstructorDescriptionOracleCloudCertificateService
(OracleCloudCertificationsConfiguration oracleCloudCertificationsConfiguration, com.oracle.bmc.certificates.Certificates certificates, io.micronaut.context.event.ApplicationEventPublisher<CertificateEvent> eventPublisher) Constructs a new Oracle Cloud Certificate service. -
Method Summary
Modifier and TypeMethodDescriptionprotected @NonNull Optional<CertificateEvent>
Returns the certificate event.void
Setup the certificate for HTTPS.
-
Constructor Details
-
OracleCloudCertificateService
public OracleCloudCertificateService(OracleCloudCertificationsConfiguration oracleCloudCertificationsConfiguration, com.oracle.bmc.certificates.Certificates certificates, io.micronaut.context.event.ApplicationEventPublisher<CertificateEvent> eventPublisher) Constructs a new Oracle Cloud Certificate service.- Parameters:
oracleCloudCertificationsConfiguration
- Oracle Cloud Certificate configurationcertificates
- Oracle Cloud Certificate clienteventPublisher
- Application Event Publisher
-
-
Method Details
-
getCertificateEvent
Returns the certificate event.- Returns:
- certificate event
-
refreshCertificate
@Retryable(attempts="${oci.certificates.refresh.retry.attempts:3}", delay="${oci.certificates.refresh.retry.delay:1s}") public void refreshCertificate()Setup the certificate for HTTPS.
-