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 TypeMethodDescriptionvoidRemoves the secret for the given identifier.Retrieves the secret for the given identifier.com.atlassian.secrets.api.SecretServiceConfigurationReturns a record describing the current configuration of the SecretService which can be used for analytics within a product.com.atlassian.secrets.api.SecretService.SecretServiceManagementRetrieves the current migration state for the initial upgrade task.voidStores 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:InternalJiraSecretsStorageStores the secret for the given identifier. If a secret already exists for the given identifier, it will be overwritten.- Specified by:
putin interfaceInternalJiraSecretsStorage- Parameters:
identifier- The identifier for the secret . The maximum size is 255 characters.secret- The secret to store.
-
get
Description copied from interface:InternalJiraSecretsStorageRetrieves the secret for the given identifier.- Specified by:
getin 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:InternalJiraSecretsStorageRemoves the secret for the given identifier.- Specified by:
deletein interfaceInternalJiraSecretsStorage- Parameters:
identifier- The identifier for the secret .
-
getMigrationState
Description copied from interface:InternalJiraSecretsStorageRetrieves 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:
getMigrationStatein interfaceInternalJiraSecretsStorage- Returns:
- The current migration state of the secrets storage.
-
getConfiguration
public com.atlassian.secrets.api.SecretServiceConfiguration getConfiguration()Description copied from interface:InternalJiraSecretsStorageReturns a record describing the current configuration of the SecretService which can be used for analytics within a product.- Specified by:
getConfigurationin interfaceInternalJiraSecretsStorage- Returns:
- An
SecretServiceConfigurationrecord
-
getManagement
public com.atlassian.secrets.api.SecretService.SecretServiceManagement getManagement()- Specified by:
getManagementin interfaceInternalJiraSecretsStorage
-