com.atlassian.bamboo.credentials
Class SshCredentialType
java.lang.Object
com.atlassian.bamboo.credentials.AbstractCredentialType
com.atlassian.bamboo.credentials.SshCredentialType
- All Implemented Interfaces:
- CredentialType, InitablePluginModule<CredentialTypeModuleDescriptor>, BambooPluginModule
public class SshCredentialType
- extends AbstractCredentialType
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSH_CREDENTIALS_PLUGIN_KEY
public static final String SSH_CREDENTIALS_PLUGIN_KEY
- See Also:
- Constant Field Values
CFG_SSH_KEY
public static final String CFG_SSH_KEY
- See Also:
- Constant Field Values
CFG_SSH_PASSPHRASE
public static final String CFG_SSH_PASSPHRASE
- See Also:
- Constant Field Values
SshCredentialType
public SshCredentialType()
validate
public void validate(@NotNull
ActionParametersMap params,
@Nullable
CredentialsData previousCredentialsData,
@NotNull
ErrorCollection errorCollection)
- Description copied from interface:
CredentialType
- Validate configuration.
- Specified by:
validate
in interface CredentialType
- Overrides:
validate
in class AbstractCredentialType
- Parameters:
params
- configuration to be validatedpreviousCredentialsData
- the previous immutable CredentialsData
before saving or null if credentials
are being created.errorCollection
- error collection to be set on validation failure
generateCredentialsConfigMap
@NotNull
public Map<String,String> generateCredentialsConfigMap(@NotNull
ActionParametersMap params,
@Nullable
CredentialsData previousCredentialsData)
- Description copied from interface:
CredentialType
- Convert the params from the ui into a config map to be stored in the database. Can assume validation has occurred
in the #validate method. Sensitive parameters such as passwords should be encrypted by this method before being
added to the map.
- Parameters:
params
- request parameters.previousCredentialsData
- the previous immutable CredentialsData
before saving or null if credentials
are being created.
- Returns:
- the configuration map to be stored in the database.
setEncryptionService
public void setEncryptionService(EncryptionService encryptionService)
Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.