Package com.atlassian.bamboo.credentials
Class SshCredentialTypeExporter
- java.lang.Object
-
- com.atlassian.bamboo.credentials.SshCredentialTypeExporter
-
- All Implemented Interfaces:
CredentialTypeExporter
public class SshCredentialTypeExporter extends Object implements CredentialTypeExporter
-
-
Constructor Summary
Constructors Constructor Description SshCredentialTypeExporter(com.atlassian.struts.TextProvider textProvider, DataEncryptionValidator dataEncryptionValidator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
toCredentialsConfiguration(com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties entityProperties)
Converts properties object received from importer to Bamboo credentials configuration.com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials
toSpecsEntity(CredentialsData credentialsData)
Exports the supplied credentials data and credential configuration to a credential type-specific properties.
-
-
-
Constructor Detail
-
SshCredentialTypeExporter
@Inject public SshCredentialTypeExporter(com.atlassian.struts.TextProvider textProvider, DataEncryptionValidator dataEncryptionValidator)
-
-
Method Detail
-
toCredentialsConfiguration
public Map<String,String> toCredentialsConfiguration(com.atlassian.bamboo.specs.api.model.credentials.SharedCredentialsProperties entityProperties) throws YamlValidationException
Description copied from interface:CredentialTypeExporter
Converts properties object received from importer to Bamboo credentials configuration. The method should throw if source data is invalid.- Specified by:
toCredentialsConfiguration
in interfaceCredentialTypeExporter
- Throws:
YamlValidationException
-
toSpecsEntity
public com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials toSpecsEntity(CredentialsData credentialsData)
Description copied from interface:CredentialTypeExporter
Exports the supplied credentials data and credential configuration to a credential type-specific properties.- Specified by:
toSpecsEntity
in interfaceCredentialTypeExporter
-
-