Package io.smallrye.config
Class SecretKeysHandlerFactory.LazySecretKeysHandler
- java.lang.Object
-
- io.smallrye.config.SecretKeysHandlerFactory.LazySecretKeysHandler
-
- All Implemented Interfaces:
SecretKeysHandler
- Enclosing interface:
- SecretKeysHandlerFactory
public static class SecretKeysHandlerFactory.LazySecretKeysHandler extends Object implements SecretKeysHandler
Defers the initialization of aSecretKeysHandlerFactoryto only when a value requires decoding. This allows to initialize aSecretKeysHandlerwith configuration coming from sources provided by aConfigSourceFactory.
-
-
Constructor Summary
Constructors Constructor Description LazySecretKeysHandler(SecretKeysHandlerFactory factory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdecode(String secret)Decodes the secret configuration value.SecretKeysHandlerget(ConfigSourceContext configSourceContext)StringgetName()The name ofSecretKeysHandler.
-
-
-
Constructor Detail
-
LazySecretKeysHandler
public LazySecretKeysHandler(SecretKeysHandlerFactory factory)
-
-
Method Detail
-
get
public SecretKeysHandler get(ConfigSourceContext configSourceContext)
-
decode
public String decode(String secret)
Description copied from interface:SecretKeysHandlerDecodes the secret configuration value.- Specified by:
decodein interfaceSecretKeysHandler- Parameters:
secret- the value to decode.- Returns:
- the secret decoded.
-
getName
public String getName()
Description copied from interface:SecretKeysHandlerThe name ofSecretKeysHandler.- Specified by:
getNamein interfaceSecretKeysHandler- Returns:
- the name of the
SecretKeysHandler.
-
-