public class CredentialsExportServiceImpl extends Object implements CredentialsExportService
Constructor and Description |
---|
CredentialsExportServiceImpl() |
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 public Iterable<Path> exportAllCredentials()
CredentialsExportService
exportAllCredentials
in interface CredentialsExportService
@NotNull public Iterable<Path> exportCredentials(@NotNull CredentialsData credentialsData)
CredentialsExportService
exportCredentials
in interface CredentialsExportService
EncryptedCredentialsAccessor
@NotNull public com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties toEntityProperties(String yamlString) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
CredentialsExportService
toEntityProperties
in interface CredentialsExportService
com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if the imported properties were not validYamlValidationException
- if the format of the YAML file is invalid@NotNull public CredentialsData importCredentials(@NotNull com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties credentialProperties) throws com.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException, YamlValidationException
CredentialsExportService
importCredentials
in interface CredentialsExportService
credentialProperties
- credential properties to importcom.atlassian.bamboo.specs.api.exceptions.PropertiesValidationException
- if data validation failsYamlValidationException
- if the format of the YAML file is invalid (plugins will parse their part here)Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.