Package io.smallrye.config
Interface SecretKeysHandlerFactory
-
public interface SecretKeysHandlerFactoryThisSecretKeysHandlerFactoryallows to initialize aSecretKeysHandler, with access to the currentConfigSourceContext.Instances of this interface will be discovered via the
ServiceLoadermechanism and can be registered by providing aMETA-INF/services/io.smallrye.config.SecretKeysHandlerFactoryfile, which contains the fully qualified class name of the customSecretKeysHandlerFactoryimplementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSecretKeysHandlerFactory.LazySecretKeysHandlerDefers the initialization of aSecretKeysHandlerFactoryto only when a value requires decoding.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetName()The name ofSecretKeysHandler.SecretKeysHandlergetSecretKeysHandler(ConfigSourceContext context)Gets theSecretKeysHandlerfrom theSecretKeysHandlerFactory.
-
-
-
Method Detail
-
getSecretKeysHandler
SecretKeysHandler getSecretKeysHandler(ConfigSourceContext context)
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.
-
-