com.atlassian.bamboo.credentials
Class SshCredentialsImpl

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

public class SshCredentialsImpl
extends java.lang.Object
implements PrivateKeyCredentials


Constructor Summary
SshCredentialsImpl(CredentialsData credentials)
           
SshCredentialsImpl(java.lang.String sshKey, java.lang.String sshPassphrase)
           
 
Method Summary
 CredentialsData convertToCredentials(EncryptionService encryptionService, java.lang.String name)
          Converts a PrivateKeyCredentials to Credentials Object with the key and passphrase encrypted and serialized to xml
 java.lang.String getKey()
           
 java.lang.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(java.lang.String sshKey,
                          java.lang.String sshPassphrase)

SshCredentialsImpl

public SshCredentialsImpl(CredentialsData credentials)
Method Detail

getKey

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

getPassphrase

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

convertToCredentials

public CredentialsData convertToCredentials(EncryptionService encryptionService,
                                            java.lang.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
name - the name of the credentials
Returns:
Credentials object with the sskKey and passphrase serialized to xml


Copyright © 2014 Atlassian Software Systems Pty Ltd. All Rights Reserved.