@ExperimentalApi
public interface CredentialsExportService
Modifier and Type | Method and Description |
---|---|
Iterable<Path> |
exportAllCredentials()
Export all shared credentials to default location in Bamboo home dir.
|
Iterable<Path> |
exportCredentials(CredentialsData credentialsData)
Export a shared credential to default location in Bamboo home dir.
|
CredentialsData |
importCredentials(com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties credentialProperties)
Validates exported credential properties within Bamboo context (e.g.
|
com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties |
toEntityProperties(String yamlString)
Converts data from a YAML document to credential export properties.
|
@NotNull Iterable<Path> exportAllCredentials()
@NotNull Iterable<Path> exportCredentials(@NotNull CredentialsData credentialsData)
EncryptedCredentialsAccessor
@NotNull com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties toEntityProperties(String yamlString) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
yamlString
- YamlValidationException
- if the format of the YAML file is invalidcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not valid@NotNull CredentialsData importCredentials(@NotNull com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties credentialProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
credentialProperties
- credential properties to importYamlValidationException
- if the format of the YAML file is invalid (plugins will parse their part here)com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.