Class SshCredentials
java.lang.Object
com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<T>
com.atlassian.bamboo.specs.api.builders.RootEntityPropertiesBuilder<C>
com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials<SshCredentials,SshCredentialsProperties>
com.atlassian.bamboo.specs.builders.credentials.SshCredentials
Represent shared SSH credentials.
Shared SSH credentials can be used when defining authorisation of VCS repositories (e.g.
GitRepository
) and in certain tasks.-
Field Summary
Fields inherited from class com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials
name, oid, project, TYPE
-
Constructor Summary
ConstructorDescriptionCreate new SSH credentials.SshCredentials
(String name) Create new SSH credentials with name. -
Method Summary
Modifier and TypeMethodDescriptionprotected SshCredentialsProperties
build()
passphrase
(String passhphrase) Set passphrase to use to access SSH private key.privateKey
(String key) Set SSH private key.Methods inherited from class com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials
humanReadableId, humanReadableType, name, oid, oid, project
-
Constructor Details
-
SshCredentials
public SshCredentials()Create new SSH credentials. -
SshCredentials
Create new SSH credentials with name.- Parameters:
name
- name of the credentials.
-
-
Method Details
-
privateKey
Set SSH private key. -
passphrase
Set passphrase to use to access SSH private key. -
build
- Specified by:
build
in classSharedCredentials<SshCredentials,
SshCredentialsProperties>
-