Class SshCredentials


  • public class SshCredentials
    extends com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials<SshCredentials,​SshCredentialsProperties>
    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

      Constructors 
      Constructor Description
      SshCredentials()
      Create new SSH credentials.
      SshCredentials​(java.lang.String name)
      Create new SSH credentials with name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected SshCredentialsProperties build()  
      SshCredentials passphrase​(java.lang.String passhphrase)
      Set passphrase to use to access SSH private key.
      SshCredentials privateKey​(java.lang.String key)
      Set SSH private key.
      • Methods inherited from class com.atlassian.bamboo.specs.api.builders.credentials.SharedCredentials

        humanReadableId, humanReadableType, name, oid, oid, project
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SshCredentials

        public SshCredentials()
        Create new SSH credentials.
      • SshCredentials

        public SshCredentials​(java.lang.String name)
        Create new SSH credentials with name.
        Parameters:
        name - name of the credentials.