Package io.smallrye.config
Interface SecretKeysHandlerFactory
public interface SecretKeysHandlerFactory
This
SecretKeysHandlerFactory allows to initialize a SecretKeysHandler, with access to the current
ConfigSourceContext.
Instances of this interface will be discovered via the ServiceLoader mechanism and can be
registered by providing a META-INF/services/io.smallrye.config.SecretKeysHandlerFactory file, which contains
the fully qualified class name of the custom SecretKeysHandlerFactory implementation.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefers the initialization of aSecretKeysHandlerFactoryto only when a value requires decoding. -
Method Summary
Modifier and TypeMethodDescriptiongetName()The name ofSecretKeysHandler.getSecretKeysHandler(ConfigSourceContext context) Gets theSecretKeysHandlerfrom theSecretKeysHandlerFactory.
-
Method Details
-
getSecretKeysHandler
Gets theSecretKeysHandlerfrom theSecretKeysHandlerFactory. Implementations of this method must provide an instance of theSecretKeysHandlerto decode secret configuration values by theSecretKeysHandlername.- Parameters:
context- the currentConfigSourceContextwith access to the current configuration sources.- Returns:
- the
SecretKeysHandlerto decode secret configuration values with the namegetName().
-
getName
String getName()The name ofSecretKeysHandler.- Returns:
- the name of the
SecretKeysHandler.
-