Class SshHostKeyVerificationStrategy

    • Constructor Detail

      • SshHostKeyVerificationStrategy

        public SshHostKeyVerificationStrategy()
    • Method Detail

      • verify

        public abstract boolean verify​(SlaveComputer computer,
                                       HostKey hostKey,
                                       TaskListener listener)
                                throws Exception
        Check if the given key is valid for the host identifier.
        Parameters:
        computer - the computer this connection is being initiated for
        hostKey - the key that was transmitted by the remote host for the current connection. This is the key that should be checked to see if we trust it by the current verifier.
        listener - the connection listener to write any output log to
        Returns:
        whether the provided HostKey is trusted and the current connection can therefore continue.
        Throws:
        Exception
        Since:
        1.12
      • getPreferredKeyAlgorithms

        @CheckForNull
        public String[] getPreferredKeyAlgorithms​(SlaveComputer computer)
                                           throws IOException
        Provides a list of preferred key algorithms for this strategy and computer.
        Returns:
        a list of algorithms; empty or null lists will be ignored
        Throws:
        IOException
        See Also:
        Connection.setServerHostKeyAlgorithms(java.lang.String[])