Class DefaultInternalJiraSecretsStorage
java.lang.Object
com.atlassian.jira.security.secrets.DefaultInternalJiraSecretsStorage
- All Implemented Interfaces:
InternalJiraSecretsStorage
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefaultInternalJiraSecretsStorage
(ApplicationPropertiesDao propertiesDao, ClusterNodeProperties clusterNodeProperties, JiraHome jiraHome, com.atlassian.secrets.api.SecretDao secretDao, SecretStorageHandler auditHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Removes the secret for the given identifier.Retrieves the secret for the given identifier.com.atlassian.secrets.api.SecretServiceConfiguration
Returns a record describing the current configuration of the SecretService which can be used for analytics within a product.com.atlassian.secrets.api.SecretService.SecretServiceManagement
Retrieves the current migration state for the initial upgrade task.void
Stores the secret for the given identifier.
-
Field Details
-
JIRA_SECRET_STORAGE_MIGRATION_STATE
- See Also:
-
REPLACEMENT_FOR_TRANSFERRED_SECRET
- See Also:
-
-
Constructor Details
-
DefaultInternalJiraSecretsStorage
public DefaultInternalJiraSecretsStorage(ApplicationPropertiesDao propertiesDao, ClusterNodeProperties clusterNodeProperties, JiraHome jiraHome, com.atlassian.secrets.api.SecretDao secretDao, SecretStorageHandler auditHandler)
-
-
Method Details
-
put
Description copied from interface:InternalJiraSecretsStorage
Stores the secret for the given identifier. If a secret already exists for the given identifier, it will be overwritten.- Specified by:
put
in interfaceInternalJiraSecretsStorage
- Parameters:
identifier
- The identifier for the secret . The maximum size is 255 characters.secret
- The secret to store.
-
get
Description copied from interface:InternalJiraSecretsStorage
Retrieves the secret for the given identifier.- Specified by:
get
in interfaceInternalJiraSecretsStorage
- Parameters:
identifier
- The identifier for the secret .- Returns:
- The secret for the given identifier, or
Optional.empty()
if the secret does not exist.
-
delete
Description copied from interface:InternalJiraSecretsStorage
Removes the secret for the given identifier.- Specified by:
delete
in interfaceInternalJiraSecretsStorage
- Parameters:
identifier
- The identifier for the secret .
-
getMigrationState
Description copied from interface:InternalJiraSecretsStorage
Retrieves the current migration state for the initial upgrade task. See for a detailed description of the possible states. To be removed in Jira 11.0.- Specified by:
getMigrationState
in interfaceInternalJiraSecretsStorage
- Returns:
- The current migration state of the secrets storage.
-
getConfiguration
public com.atlassian.secrets.api.SecretServiceConfiguration getConfiguration()Description copied from interface:InternalJiraSecretsStorage
Returns a record describing the current configuration of the SecretService which can be used for analytics within a product.- Specified by:
getConfiguration
in interfaceInternalJiraSecretsStorage
- Returns:
- An
SecretServiceConfiguration
record
-
getManagement
public com.atlassian.secrets.api.SecretService.SecretServiceManagement getManagement()- Specified by:
getManagement
in interfaceInternalJiraSecretsStorage
-