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 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 configuration
      certificates - Oracle Cloud Certificate client
      eventPublisher - Application Event Publisher
  • Method Details

    • getCertificateEvent

      @NonNull protected @NonNull Optional<CertificateEvent> 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.