Package com.io7m.idstore.server.api

# Class IdServerConfigurations

java.lang.Object
com.io7m.idstore.server.api.IdServerConfigurations

public final class IdServerConfigurations extends Object
Functions to produce server configurations.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static IdServerConfiguration`
  `ofFile(Locale locale, Clock clock, IdServerConfigurationFile file)`
  Read a server configuration from the given file.
  `static IdServerConfiguration`
  `ofFile(Locale locale, Clock clock, Path file)`
  Read a server configuration from the given file.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### ofFile

    public static IdServerConfiguration ofFile(Locale locale, Clock clock, Path file) throws IOException
    Read a server configuration from the given file.
    Parameters:
      `locale` - The locale
      `clock` - The clock
      `file` - The file
    Returns:
      A server configuration
    Throws:
      `IOException` - On errors

  - ### ofFile

    public static IdServerConfiguration ofFile(Locale locale, Clock clock, IdServerConfigurationFile file)
    Read a server configuration from the given file.
    Parameters:
      `locale` - The locale
      `clock` - The clock
      `file` - The file
    Returns:
      A server configuration