Class CredentialsExportServiceImpl
java.lang.Object
com.atlassian.bamboo.configuration.external.CredentialsExportServiceImpl
- All Implemented Interfaces:
CredentialsExportService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExport all shared credentials to default location in Bamboo home dir.exportCredentials
(@NotNull CredentialsData credentialsData) Export a shared credential to default location in Bamboo home dir.@NotNull CredentialsData
importCredentials
(@NotNull com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties credentialProperties) Validates exported credential properties within Bamboo context (e.g.@NotNull com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties
toEntityProperties
(String yamlString) Converts data from a YAML document to credential export properties.@NotNull com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials
toSpecsEntity
(@NotNull CredentialsData credentialsData)
-
Constructor Details
-
CredentialsExportServiceImpl
public CredentialsExportServiceImpl()
-
-
Method Details
-
exportAllCredentials
Description copied from interface:CredentialsExportService
Export all shared credentials to default location in Bamboo home dir. Credentials will have their configuration encrypted for confidential data security.- Specified by:
exportAllCredentials
in interfaceCredentialsExportService
- Returns:
- paths to files updated by export process
-
exportCredentials
@NotNull public @NotNull Iterable<Path> exportCredentials(@NotNull @NotNull CredentialsData credentialsData) Description copied from interface:CredentialsExportService
Export a shared credential to default location in Bamboo home dir. The entity should be encrypted for data security.- Specified by:
exportCredentials
in interfaceCredentialsExportService
- Returns:
- paths to files updated by export process
- See Also:
-
toEntityProperties
@NotNull public @NotNull com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties toEntityProperties(String yamlString) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException Description copied from interface:CredentialsExportService
Converts data from a YAML document to credential export properties. This method performs validation of YAML types and of the properties without Bamboo context (e.g. no database integrity is verified).- Specified by:
toEntityProperties
in interfaceCredentialsExportService
- Returns:
- credential properties after contextless validation
- Throws:
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validYamlValidationException
- if the format of the YAML file is invalid
-
toSpecsEntity
@NotNull public @NotNull com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials toSpecsEntity(@NotNull @NotNull CredentialsData credentialsData) - Specified by:
toSpecsEntity
in interfaceCredentialsExportService
-