Class SshPrivateKeyAuthentication
- java.lang.Object
-
- com.atlassian.bamboo.specs.api.builders.EntityPropertiesBuilder<SshPrivateKeyAuthenticationProperties>
-
- com.atlassian.bamboo.specs.builders.repository.git.SshPrivateKeyAuthentication
-
public class SshPrivateKeyAuthentication extends EntityPropertiesBuilder<SshPrivateKeyAuthenticationProperties>
SSH private key authentication for git repository.
-
-
Constructor Summary
Constructors Constructor Description SshPrivateKeyAuthentication(java.lang.String sshPrivateKey)Specifies new ssh credentials with given private key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SshPrivateKeyAuthenticationPropertiesbuild()SshPrivateKeyAuthenticationpassphrase(@Nullable java.lang.String passphrase)Sets passphrase for the private key.SshPrivateKeyAuthenticationsshPrivateKey(java.lang.String sshPrivateKey)Sets private key.
-
-
-
Constructor Detail
-
SshPrivateKeyAuthentication
public SshPrivateKeyAuthentication(java.lang.String sshPrivateKey)
Specifies new ssh credentials with given private key. The key can be both in Bamboo encrypted and plain form.- Parameters:
sshPrivateKey- private key- See Also:
- Encryption in Bamboo Specs
-
-
Method Detail
-
sshPrivateKey
public SshPrivateKeyAuthentication sshPrivateKey(java.lang.String sshPrivateKey)
Sets private key. The key can be both in Bamboo encrypted and plain form.- Parameters:
sshPrivateKey- private key- See Also:
- Encryption in Bamboo Specs
-
passphrase
public SshPrivateKeyAuthentication passphrase(@Nullable @Nullable java.lang.String passphrase)
Sets passphrase for the private key. The passphrase can be both in Bamboo encrypted and plain form.- Parameters:
passphrase- passphrase- See Also:
- Encryption in Bamboo Specs
-
build
protected SshPrivateKeyAuthenticationProperties build()
- Specified by:
buildin classEntityPropertiesBuilder<SshPrivateKeyAuthenticationProperties>
-
-