Class DefaultOciPrivateKeyDownloader
java.lang.Object
io.helidon.integrations.oci.tls.certificates.DefaultOciPrivateKeyDownloader
- All Implemented Interfaces:
Prioritized
,OciPrivateKeyDownloader
@Singleton
public class DefaultOciPrivateKeyDownloader
extends Object
implements OciPrivateKeyDownloader, 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
ConstructorDescriptionDeprecated.this is a Java ServiceLoader implementation and the constructor should not be used directly -
Method Summary
Modifier and TypeMethodDescriptionThe implementation will download the private key identified by the given ocid from the given vault crypto endpoint.int
priority()
Priority of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation).
-
Constructor Details
-
DefaultOciPrivateKeyDownloader
Deprecated.this is a Java ServiceLoader implementation and the constructor should not be used directlyService loader based constructor.
-
-
Method Details
-
loadKey
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 interfaceOciPrivateKeyDownloader
- Parameters:
keyOcid
- the key ocidvaultCryptoEndpoint
- the vault crypto endpoint identifying where to go to download the key ocid- Returns:
- the downloaded private key
-
priority
public int priority()Description copied from interface:Prioritized
Priority of this class (maybe because it is defined dynamically, so it cannot be defined by an annotation). If not dynamic, you can use thejakarta.annotation.Priority
annotation rather then implementing this interface as long as it is supported by the library using thisPrioritized
.- Specified by:
priority
in interfacePrioritized
- Returns:
- the priority of this service, must be a non-negative number
-