Interface SshConfigStore

  • All Known Implementing Classes:
    OpenSshConfigFile

    public interface SshConfigStore
    An abstraction for a SSH config storage, like the OpenSSH ~/.ssh/config file.
    Since:
    5.8
    • Method Detail

      • lookup

        @NonNull
        SshConfigStore.HostConfig lookup​(@NonNull
                                         java.lang.String hostName,
                                         int port,
                                         java.lang.String userName)
        Locate the configuration for a specific host request.
        Parameters:
        hostName - to look up
        port - the user supplied; <= 0 if none
        userName - the user supplied, may be null or empty if none given
        Returns:
        the configuration for the requested name.