com.atlassian.bamboo.credentials
Class SshCredentialType

java.lang.Object
  extended by com.atlassian.bamboo.credentials.AbstractCredentialType
      extended by com.atlassian.bamboo.credentials.SshCredentialType
All Implemented Interfaces:
CredentialType, InitablePluginModule<CredentialTypeModuleDescriptor>, BambooPluginModule

public class SshCredentialType
extends AbstractCredentialType


Field Summary
static String CFG_SSH_KEY
           
static String CFG_SSH_PASSPHRASE
           
static String SSH_CREDENTIALS_PLUGIN_KEY
           
 
Fields inherited from class com.atlassian.bamboo.credentials.AbstractCredentialType
CFG_CREDENTIALS_NAME, textProvider
 
Constructor Summary
SshCredentialType()
           
 
Method Summary
 Map<String,String> generateCredentialsConfigMap(ActionParametersMap params, CredentialsData previousCredentialsData)
          Convert the params from the ui into a config map to be stored in the database.
 void setEncryptionService(EncryptionService encryptionService)
           
 void validate(ActionParametersMap params, CredentialsData previousCredentialsData, ErrorCollection errorCollection)
          Validate configuration.
 
Methods inherited from class com.atlassian.bamboo.credentials.AbstractCredentialType
init, populateContextForCreate, populateContextForEdit, setTextProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

SshCredentialType

public SshCredentialType()
Method Detail

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 validated
previousCredentialsData - 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.