Interface OciCertificatesDownloader
- All Known Implementing Classes:
- DefaultOciCertificatesDownloader
public interface OciCertificatesDownloader
The contract used for downloading certificates from OCI.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classRepresents the certificate chain as well as the version identifier of the downloaded certificates.
- 
Method SummaryModifier 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- 
loadCertificatesThe 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:
 
- 
loadCACertificateThe 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
 
- 
createstatic 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 version
- certificates- the certificates
- Returns:
- a certificates wrapper
 
 
-