Class DummySecretsProcedure
java.lang.Object
overit.geocall.secrets.procedures.DummySecretsProcedure
- All Implemented Interfaces:
SecretsProcedure
Secrets procedure that do not fetch the secrets from anywhere, but it simply returns the
Secret
instance based on the values passed in the constructor.
This should be considered a fallback implementation if the format of the procedure is not compliant with the specified one
-
Constructor Summary
ConstructorsConstructorDescriptionDummySecretsProcedure(String key, String value) Create a new secrets procedure lookup using the provided parameters. -
Method Summary
-
Constructor Details
-
DummySecretsProcedure
Create a new secrets procedure lookup using the provided parameters.- Parameters:
key- the configuration keyvalue- the configuration value
-
-
Method Details
-
getKey
Description copied from interface:SecretsProcedureReturns the configuration key- Specified by:
getKeyin interfaceSecretsProcedure- Returns:
- the configuration key
-
get
Description copied from interface:SecretsProcedureGet the secret fetched- Specified by:
getin interfaceSecretsProcedure- Returns:
- the instance of the fetched secret
-
verify
Description copied from interface:SecretsProcedureExecute the validation process- Specified by:
verifyin interfaceSecretsProcedure- Type Parameters:
T- the result type- Parameters:
versionId- the version id. It's mandatory if the strategy isVERSIONED, otherwise it can benull.controller- the validation function- Returns:
- the output produced by the validation function
-