Package overit.geocall.secrets
Class SecretsManagerProvider
java.lang.Object
overit.geocall.secrets.SecretsManagerProvider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionget(Long companyId, SecretsManagerType secretsManagersType) Returns aSecretsManagerimplementation according to the provided parameters.static SecretsManagerProviderReturns theSecretsManagerProvidersingleton instance.getSystem(SecretsManagerType secretsManagersType) Returns aSecretsManagerimplementation according to the provided parameters.
-
Field Details
-
IMPOSSIBLE_TO_CREATE_AN_INSTANCE_OF_AWS_SECRETS_MANAGER_CLIENT
- See Also:
-
UNEXPECTED_SECRETS_MANAGER_TYPE
- See Also:
-
AWSSECRETS_MANAGER_CLIENT_FULL_NAME
- See Also:
-
-
Method Details
-
getInstance
Returns theSecretsManagerProvidersingleton instance.- Returns:
- the
SecretsManagerProvidersingleton instance.
-
get
Returns aSecretsManagerimplementation according to the provided parameters.- Parameters:
companyId-Longabout the company ID. Usenullvalue if the secret doesn't belong to any company but is shared across all of themsecretsManagersType-SecretsManagerTypeabout the secrets manager type.- Returns:
- a
SecretsManagerimplementation according to the provided parameters.
-
getSystem
Returns aSecretsManagerimplementation according to the provided parameters.- Parameters:
secretsManagersType-SecretsManagerTypeabout the secrets manager type.- Returns:
- a
SecretsManagerimplementation according to the provided parameters.
-