com.jscape.inet.ssh.protocol.v2.transport.keyexchange

## Interface HostKeyVerificationService

- All Known Implementing Classes:
    HostKeyFingerprintVerifier

      public interface HostKeyVerificationService

  Provides services for verifying server host key.
  Author:
    Alex Usun

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Interface and Description
    --- | ---
    `static class` | `HostKeyVerificationService.InvalidHostKeyException` Represents a verification failure.
    `static class` | `HostKeyVerificationService.OperationException` Represents operation error.

  - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static HostKeyVerificationService` | `NULL` Represents a service which does no verification.

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `assertKeyValid(java.net.InetAddress host, java.security.PublicKey key)` Checks if specified key is valid.

- - ### Field Detail

    - #### NULL

          static final HostKeyVerificationService NULL

      Represents a service which does no verification.

  - ### Method Detail

    - #### assertKeyValid

          void assertKeyValid(java.net.InetAddress host,
                              java.security.PublicKey key)
                       throws HostKeyVerificationService.OperationException

      Checks if specified key is valid.
      Parameters:
        `host` - a server host
        `key` - a server key
      Throws:
        `HostKeyVerificationService.OperationException` - if an error occurs

Copyright © JSCAPE LLC. 1999-2021. All Rights Reserved