Interface PropertyResolver

    • Field Detail

      • EMPTY

        static final PropertyResolver EMPTY
        An "empty" resolver with no properties and no parent
    • Method Detail

      • getParentPropertyResolver

        PropertyResolver getParentPropertyResolver()
        Returns:
        The parent resolver that can be used to query for missing properties - null if no parent
      • getProperties

        Map<String,​Object> getProperties()

        A map of properties that can be used to configure the SSH server or client. This map will never be changed by either the server or client and is not supposed to be changed at runtime (changes are not bound to have any effect on a running client or server), though it may affect the creation of sessions later as these values are usually not cached.

        Note: the type of the mapped property should match the expected configuration value type - Long, Integer, Boolean, String, etc.... If it doesn't, the toString() result of the mapped value is used to convert it to the required type. E.g., if the mapped value is the string "1234" and the expected value is a long then it will be parsed into one. Also, if the mapped value is an Integer but a long is expected, then it will be converted into one.

        Returns:
        a valid Map containing configuration values, never null. Note: may be immutable.
      • getLongProperty

        default long getLongProperty​(String name,
                                     long def)
      • getIntProperty

        default int getIntProperty​(String name,
                                   int def)
      • getBooleanProperty

        default boolean getBooleanProperty​(String name,
                                           boolean def)