Class HostKeyVerificationException

    • Constructor Detail

      • HostKeyVerificationException

        public HostKeyVerificationException​(@NotNull
                                            @NotNull String message,
                                            @Nullable
                                            @Nullable Throwable cause,
                                            @Nullable
                                            @Nullable TrustedKey trustedKey)
        Create an exception containing the message and root cause
        Parameters:
        message - The error message
        cause - The root cause
      • HostKeyVerificationException

        public HostKeyVerificationException​(String message,
                                            @Nullable
                                            @Nullable Throwable cause,
                                            String stdout,
                                            String stderr,
                                            @Nullable
                                            @Nullable List<String> passwordsToObfuscate,
                                            @Nullable
                                            @Nullable TrustedKey trustedKey)
    • Method Detail

      • getTrustedKey

        @Nullable
        public @Nullable TrustedKey getTrustedKey()
        Returns:
        key of remote server to be added to Trusted keys. May be null if fetching of server key was not implemented