Interface Configurable

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Configurable
An object that can be configured during startup using some generic configuration. It is the responsibility of the implementing class to parse the configuration.

A dispatcher can implement this interface to receive the configuration that is defined in the nevisfido.yml file.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    configure(Map<String,Object> configuration)
    Provides the configuration of the dispatcher as a Map.
  • Method Details

    • configure

      void configure(Map<String,Object> configuration) throws InvalidConfigurationException
      Provides the configuration of the dispatcher as a Map. For example, if the dispatcher is called my-dispatcher and the nevisFIDO configuration has the following values:
       - type: my-dispatcher
         redeem-url: https://siven/redeem
       
      The Map provided by this map will contain the key redeem-url and the value https://siven/redeem.
      Parameters:
      configuration - the configuration. Note that the Map is immutable. Any action to modify its contents will throw an UnsupportedOperationException
      Throws:
      InvalidConfigurationException - if the provided configuration is not valid