java.lang.Object
io.helidon.integrations.oci.tls.certificates.DefaultOciPrivateKeyDownloader
All Implemented Interfaces:
io.helidon.common.Prioritized, OciPrivateKeyDownloader

@Singleton public class DefaultOciPrivateKeyDownloader extends Object implements OciPrivateKeyDownloader, io.helidon.common.Prioritized
Implementation of the OciPrivateKeyDownloader that will use OCI's KMS to export a key.
  • Field Summary

    Fields inherited from interface io.helidon.common.Prioritized

    DEFAULT_PRIORITY
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    this is a Java ServiceLoader implementation and the constructor should not be used directly
  • Method Summary

    Modifier and Type
    Method
    Description
    loadKey(String keyOcid, URI vaultCryptoEndpoint)
    The implementation will download the private key identified by the given ocid from the given vault crypto endpoint.
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DefaultOciPrivateKeyDownloader

      @Deprecated public DefaultOciPrivateKeyDownloader()
      Deprecated.
      this is a Java ServiceLoader implementation and the constructor should not be used directly
      Service loader based constructor.
  • Method Details

    • loadKey

      public PrivateKey loadKey(String keyOcid, URI vaultCryptoEndpoint)
      Description copied from interface: OciPrivateKeyDownloader
      The implementation will download the private key identified by the given ocid from the given vault crypto endpoint.
      Specified by:
      loadKey in interface OciPrivateKeyDownloader
      Parameters:
      keyOcid - the key ocid
      vaultCryptoEndpoint - the vault crypto endpoint identifying where to go to download the key ocid
      Returns:
      the downloaded private key
    • priority

      public int priority()
      Specified by:
      priority in interface io.helidon.common.Prioritized