Class JGitHostConfigEntry

  • All Implemented Interfaces:
    org.apache.sshd.common.auth.MutableUserHolder, org.apache.sshd.common.auth.UsernameHolder

    public class JGitHostConfigEntry
    extends org.apache.sshd.client.config.hosts.HostConfigEntry
    A HostConfigEntry that provides access to the multi-valued keys as lists of strings. The super class treats them as single strings containing comma-separated lists.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.util.List<java.lang.String>> multiValuedOptions  
      • Fields inherited from class org.apache.sshd.client.config.hosts.HostConfigEntry

        CERTIFICATE_FILE_CONFIG_PROP, DEFAULT_EXCLUSIVE_IDENTITIES, EXCLUSIVE_IDENTITIES_CONFIG_PROP, exclusiveIdentites, EXPLICIT_PROPERTIES, host, HOST_CONFIG_PROP, HOST_NAME_CONFIG_PROP, hostName, identities, IDENTITY_AGENT, IDENTITY_FILE_CONFIG_PROP, LOCAL_HOME_MACRO, LOCAL_HOST_MACRO, LOCAL_USER_MACRO, MATCH_CONFIG_PROP, MULTI_VALUE_SEPARATORS, PATH_MACRO_CHAR, port, PORT_CONFIG_PROP, properties, PROXY_JUMP_CONFIG_PROP, proxyJump, REMOTE_HOST_MACRO, REMOTE_PORT_MACRO, REMOTE_USER_MACRO, STD_CONFIG_FILENAME, USER_CONFIG_PROP, username
      • Fields inherited from class org.apache.sshd.client.config.hosts.HostPatternsHolder

        ALL_HOSTS_PATTERN, NEGATION_CHAR_PATTERN, NON_STANDARD_PORT_PATTERN_ENCLOSURE_END_DELIM, NON_STANDARD_PORT_PATTERN_ENCLOSURE_START_DELIM, PATTERN_CHARS, PORT_VALUE_DELIMITER, SINGLE_CHAR_PATTERN, WILDCARD_PATTERN
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getMultiValuedOptions()
      Retrieves all multi-valued options.
      void setMultiValuedOptions​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> options)
      Sets the multi-valued options.
      • Methods inherited from class org.apache.sshd.client.config.hosts.HostConfigEntry

        addIdentity, addIdentity, append, appendHostConfigEntries, appendNonEmptyPort, appendNonEmptyProperties, appendNonEmptyProperty, appendNonEmptyValues, appendNonEmptyValues, appendPropertyValue, collate, findMatchingEntries, findMatchingEntries, getDefaultHostConfigFile, getHost, getHostName, getIdentities, getPort, getProperties, getProperty, getProperty, getProxyJump, getUsername, isIdentitiesOnly, parseConfigValue, processProperty, readHostConfigEntries, readHostConfigEntries, readHostConfigEntries, readHostConfigEntries, readHostConfigEntries, removeProperty, resolveIdentityFilePath, setHost, setHost, setHostName, setIdentities, setIdentitiesOnly, setPort, setProperties, setProperty, setProxyJump, setUsername, toHostConfigEntryResolver, toString, writeHostConfigEntries, writeHostConfigEntries
      • Methods inherited from class org.apache.sshd.client.config.hosts.HostPatternsHolder

        getPatterns, isHostMatch, isHostMatch, isHostMatch, isPortMatch, isSpecificHostPattern, isValidPatternChar, parsePatterns, parsePatterns, setPatterns, toPattern
      • Methods inherited from class java.lang.Object

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

      • multiValuedOptions

        private java.util.Map<java.lang.String,​java.util.List<java.lang.String>> multiValuedOptions
    • Constructor Detail

      • JGitHostConfigEntry

        public JGitHostConfigEntry()
    • Method Detail

      • setMultiValuedOptions

        public void setMultiValuedOptions​(java.util.Map<java.lang.String,​java.util.List<java.lang.String>> options)
        Sets the multi-valued options.
        Parameters:
        options - to set, may be null to set an empty map
      • getMultiValuedOptions

        @NonNull
        public java.util.Map<java.lang.String,​java.util.List<java.lang.String>> getMultiValuedOptions()
        Retrieves all multi-valued options.
        Returns:
        an unmodifiable map