com.atlassian.bamboo.credentials
Class SshCredentialsImpl
java.lang.Object
com.atlassian.bamboo.credentials.SshCredentialsImpl
- All Implemented Interfaces:
- PrivateKeyCredentials
public class SshCredentialsImpl
- extends java.lang.Object
- implements PrivateKeyCredentials
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SshCredentialsImpl
public SshCredentialsImpl(java.lang.String sshKey,
java.lang.String sshPassphrase)
SshCredentialsImpl
public SshCredentialsImpl(CredentialsData credentials)
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 credentialsname
- 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.