Interface OciCertificatesDownloader
- All Known Implementing Classes:
DefaultOciCertificatesDownloader
public interface OciCertificatesDownloader
The contract used for downloading certificates from OCI.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Represents the certificate chain as well as the version identifier of the downloaded certificates. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String version, X509Certificate[] certificates) Creates a Certificates instance given its version and array of certificates.loadCACertificate
(String caCertOcid) The implementation will download the CA certificate identified by the given ocid from the OCI Certificates Services.loadCertificates
(String certOcid) The implementation will download the certificate chain identified by the given ocid from the OCI Certificates Service.
-
Method Details
-
loadCertificates
The implementation will download the certificate chain identified by the given ocid from the OCI Certificates Service.- Parameters:
certOcid
- the cert ocid- Returns:
- the downloaded certificate chain
- Throws:
IllegalStateException
- if there is any errors loading the key- See Also:
-
loadCACertificate
The implementation will download the CA certificate identified by the given ocid from the OCI Certificates Services.- Parameters:
caCertOcid
- the ca cert ocid- Returns:
- the downloaded CA certificate
- Throws:
IllegalStateException
- if there is any errors loading the key
-
create
static OciCertificatesDownloader.Certificates create(String version, X509Certificate[] certificates) Creates a Certificates instance given its version and array of certificates. The version is used to identify change - the format of the string is immaterial. Only when it changes it will signify the need for reloading.- Parameters:
version
- the versioncertificates
- the certificates- Returns:
- a certificates wrapper
-