Class OpenSshServerKeyDatabase.HostKeyFile

  • All Implemented Interfaces:
    java.util.function.Supplier<java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair>>
    Enclosing class:
    OpenSshServerKeyDatabase

    private static class OpenSshServerKeyDatabase.HostKeyFile
    extends org.apache.sshd.common.util.io.ModifiableFileWatcher
    implements java.util.function.Supplier<java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair>>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair> entries  
      • Fields inherited from class org.apache.sshd.common.util.io.ModifiableFileWatcher

        options, STRICTLY_PROHIBITED_FILE_PERMISSION
      • Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        log
    • Constructor Summary

      Constructors 
      Constructor Description
      HostKeyFile​(java.nio.file.Path path)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair> get()  
      private java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair> reload​(java.nio.file.Path path)  
      • Methods inherited from class org.apache.sshd.common.util.io.ModifiableFileWatcher

        checkReloadRequired, exists, getPath, lastModified, resetReloadAttributes, size, toPathResource, toPathResource, toString, updateReloadAttributes, validateStrictConfigFilePermissions
      • Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean

        getSimplifiedLogger
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • entries

        private java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair> entries
    • Constructor Detail

      • HostKeyFile

        public HostKeyFile​(java.nio.file.Path path)
    • Method Detail

      • get

        public java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair> get()
        Specified by:
        get in interface java.util.function.Supplier<java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair>>
      • reload

        private java.util.List<org.apache.sshd.client.keyverifier.KnownHostsServerKeyVerifier.HostEntryPair> reload​(java.nio.file.Path path)
                                                                                                             throws java.io.IOException
        Throws:
        java.io.IOException