@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(SharedCredentialsProperties credentialProperties)
Validates exported credential properties within Bamboo context (e.g.
|
SharedCredentialsProperties |
toEntityProperties(Map<String,Object> dataMap)
Converts data from a YAML document to credential export properties.
|
@NotNull Iterable<Path> exportAllCredentials()
@NotNull Iterable<Path> exportCredentials(@NotNull CredentialsData credentialsData)
EncryptedCredentialsAccessor
@NotNull SharedCredentialsProperties toEntityProperties(Map<String,Object> dataMap) throws PropertiesValidationException, YamlValidationException
dataMap
- YamlValidationException
- if the format of the YAML file is invalidPropertiesValidationException
- if the imported properties were not valid@NotNull CredentialsData importCredentials(@NotNull SharedCredentialsProperties credentialProperties) throws PropertiesValidationException, YamlValidationException
credentialProperties
- credential properties to importYamlValidationException
- if the format of the YAML file is invalid (plugins will parse their part here)PropertiesValidationException
- if data validation failsCopyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.