com.atlassian.bamboo.credentials
Class SshCredentialsImpl

java.lang.Object
  extended by com.atlassian.bamboo.credentials.SshCredentialsImpl
All Implemented Interfaces:
PrivateKeyCredentials

public class SshCredentialsImpl
extends Object
implements PrivateKeyCredentials


Constructor Summary
SshCredentialsImpl(CredentialsData credentials)
           
SshCredentialsImpl(String sshKey, String sshPassphrase)
           
 
Method Summary
 CredentialsData convertToCredentials(EncryptionService encryptionService, String credentialsKey, String name)
          Converts a PrivateKeyCredentials to Credentials Object with the key and passphrase encrypted and serialized to xml
 String getKey()
           
 String getPassphrase()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshCredentialsImpl

public SshCredentialsImpl(String sshKey,
                          String sshPassphrase)

SshCredentialsImpl

public SshCredentialsImpl(CredentialsData credentials)
Method Detail

getKey

public String getKey()
Specified by:
getKey in interface PrivateKeyCredentials
Returns:
private key

getPassphrase

public String getPassphrase()
Specified by:
getPassphrase in interface PrivateKeyCredentials
Returns:
key passphrase

convertToCredentials

public CredentialsData convertToCredentials(EncryptionService encryptionService,
                                            String credentialsKey,
                                            String name)
Description copied from interface: PrivateKeyCredentials
Converts a PrivateKeyCredentials to Credentials Object with the key and passphrase encrypted and serialized to xml

Specified by:
convertToCredentials in interface PrivateKeyCredentials
Parameters:
encryptionService - encryptionService to use to encrypt the credentials
credentialsKey - the plugin key of the credentials
name - the name of the credentials
Returns:
Credentials object with the sskKey and passphrase serialized to xml


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.