Class HostKeyVerificationException

All Implemented Interfaces:
Serializable

public class HostKeyVerificationException extends RepositoryException
When SSH transport is used for server access and its key doesn't exists in Trusted keys.
See Also:
  • Constructor Details

    • 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 Details

    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable
    • 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