Class SshSlaveLauncher

    • Field Detail

      • credentialsId

        public final Control credentialsId
      • prefixCmd

        public final Control prefixCmd
      • suffixCmd

        public final Control suffixCmd
      • timeout

        public final Control timeout
      • retries

        public final Control retries
      • jvmOptions

        public final Control jvmOptions
      • hostKeyVerificationStrategy

        public final Control hostKeyVerificationStrategy
    • Constructor Detail

      • SshSlaveLauncher

        public SshSlaveLauncher​(PageObject context,
                                String path)
    • Method Detail

      • setJavaPath

        public void setJavaPath​(String jvmPath)
      • pwdCredentials

        public SshSlaveLauncher pwdCredentials​(String username,
                                               String password)
        Add username/password based credentials to the configuration
        Parameters:
        username - to use
        password - for the username
        Returns:
        the SshSlaveLauncher to be configured
      • pwdCredentials

        public SshSlaveLauncher pwdCredentials​(String username,
                                               String password,
                                               String id)
        Add username/password and id based credentials to the configuration
        Parameters:
        username - to use
        password - for the username
        id - for unique identification
        Returns:
        the SshSlaveLauncher to be configured
      • keyCredentials

        public SshSlaveLauncher keyCredentials​(String username,
                                               String key,
                                               @CheckForNull
                                               String passphrase)
        Add username/key based credentials to the configuration
        Parameters:
        username - to use
        key - for the private key to use
        Returns:
        the SshSlaveLauncher to be configured
      • selectCredentials

        public void selectCredentials​(String credentialsId)
        Select the credentials to use by ID. The credentials need to be created before this method is invoked, e.g. using the @WithCredentials annotation.
        Parameters:
        credentialsId - the ID of the credentials to use