Package com.atlassian.secrets.service
Class SecretServiceFactory
java.lang.Object
com.atlassian.secrets.service.SecretServiceFactory
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic SecretServicegetSecretService(SecretServiceParams params) This function will read the configuration file (defaults to secrets-config.yaml) from the home directory and return a SecretService instance that is capable of routing requests to the appropriate backend.
-
Field Details
-
SECRETS_CONFIG_LOCK_FILE_NAME
- See Also:
-
LOCK_TIMEOUT_SYS_PROP
- See Also:
-
LOCK_TIMEOUT_DEFAULT_IN_MS
-
-
Method Details
-
getSecretService
public static SecretService getSecretService(SecretServiceParams params) throws SecretServiceException This function will read the configuration file (defaults to secrets-config.yaml) from the home directory and return a SecretService instance that is capable of routing requests to the appropriate backend.
If the file does not exist, it will be generated with a default configuration that usesAESEncryptionBackend.
For more detailed information, seeSecretServiceParamsandSecretConfigManager.maybeGenerateDefaultConfigFile(com.atlassian.secrets.service.SecretServiceParams).- Parameters:
params- The SecretService parameters. SeeSecretServiceParams- Returns:
SecretServicewhich has been configured using the input parameters.- Throws:
SecretServiceException- If an error occurs while constructing the SecretService.
-