src/SftpAdapter.php
public function getAuthentication()
    {
        if ($this->useAgent) {
            return $this->getAgent();
        }

        if ($this->privateKey) {
            return $this->getPrivateKey();
        }

        return $this->getPassword();
    }
public function getAuthentication()
    {
        if ($this->useAgent) {
            return $this->getAgent();
        }

        if ($this->privateKey) {
            return $this->getPrivateKey();
        }

        return $this->getPassword();
    }
public function getAuthentication ( ) { if ( $ this -> useAgent ) { return $ this -> getAgent ( ) ; } if ( $ this -> privateKey ) { return $ this -> getPrivateKey ( ) ; } return $ this -> getPassword ( ) ; }
Get the password, either the private key or a plain text password.

@return Agent|RSA|string
Get the password either the private key or a plain text password .