Package com.io7m.idstore.server.api
Record Class IdServerConfiguration
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerConfiguration
- Record Components:
locale- The localeclock- The clockdatabases- The factory of databases that will be used for the serverdatabaseConfiguration- The database configuration for the servermailConfiguration- The mail server configurationuserApiAddress- The user API addressuserViewAddress- The user view addressadminApiAddress- The admin API addresssessions- The session configurationbranding- The branding configurationhistory- The history configurationrateLimit- The rate limiting configurationmaintenanceConfiguration- The maintenance configurationpasswordExpiration- The password expiration configurationopenTelemetry- The OpenTelemetry configuration
public record IdServerConfiguration(Locale locale, Clock clock, IdDatabaseFactoryType databases, IdDatabaseConfiguration databaseConfiguration, IdServerMailConfiguration mailConfiguration, IdServerHTTPServiceConfiguration userApiAddress, IdServerHTTPServiceConfiguration userViewAddress, IdServerHTTPServiceConfiguration adminApiAddress, IdServerSessionConfiguration sessions, IdServerBrandingConfiguration branding, IdServerHistoryConfiguration history, IdServerRateLimitConfiguration rateLimit, IdServerMaintenanceConfiguration maintenanceConfiguration, IdServerPasswordExpirationConfiguration passwordExpiration, Optional<IdServerOpenTelemetryConfiguration> openTelemetry)
extends Record
The configuration for a server.
-
Constructor Summary
ConstructorsConstructorDescriptionIdServerConfiguration(Locale locale, Clock clock, IdDatabaseFactoryType databases, IdDatabaseConfiguration databaseConfiguration, IdServerMailConfiguration mailConfiguration, IdServerHTTPServiceConfiguration userApiAddress, IdServerHTTPServiceConfiguration userViewAddress, IdServerHTTPServiceConfiguration adminApiAddress, IdServerSessionConfiguration sessions, IdServerBrandingConfiguration branding, IdServerHistoryConfiguration history, IdServerRateLimitConfiguration rateLimit, IdServerMaintenanceConfiguration maintenanceConfiguration, IdServerPasswordExpirationConfiguration passwordExpiration, Optional<IdServerOpenTelemetryConfiguration> openTelemetry) The configuration for a server. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadminApiAddressrecord component.branding()Returns the value of thebrandingrecord component.clock()Returns the value of theclockrecord component.Returns the value of thedatabaseConfigurationrecord component.Returns the value of thedatabasesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.history()Returns the value of thehistoryrecord component.locale()Returns the value of thelocalerecord component.Returns the value of themailConfigurationrecord component.Returns the value of themaintenanceConfigurationrecord component.now()Returns the value of theopenTelemetryrecord component.Returns the value of thepasswordExpirationrecord component.Returns the value of therateLimitrecord component.sessions()Returns the value of thesessionsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserApiAddressrecord component.Returns the value of theuserViewAddressrecord component.
-
Constructor Details
-
IdServerConfiguration
public IdServerConfiguration(Locale locale, Clock clock, IdDatabaseFactoryType databases, IdDatabaseConfiguration databaseConfiguration, IdServerMailConfiguration mailConfiguration, IdServerHTTPServiceConfiguration userApiAddress, IdServerHTTPServiceConfiguration userViewAddress, IdServerHTTPServiceConfiguration adminApiAddress, IdServerSessionConfiguration sessions, IdServerBrandingConfiguration branding, IdServerHistoryConfiguration history, IdServerRateLimitConfiguration rateLimit, IdServerMaintenanceConfiguration maintenanceConfiguration, IdServerPasswordExpirationConfiguration passwordExpiration, Optional<IdServerOpenTelemetryConfiguration> openTelemetry) The configuration for a server.- Parameters:
locale- The localeclock- The clockdatabases- The factory of databases that will be used for the serverdatabaseConfiguration- The database configuration for the servermailConfiguration- The mail server configurationuserApiAddress- The user API addressuserViewAddress- The user view addressadminApiAddress- The admin API addresssessions- The session configurationbranding- The branding configurationhistory- The history configurationrateLimit- The rate limiting configurationmaintenanceConfiguration- The maintenance configurationpasswordExpiration- The password expiration configurationopenTelemetry- The OpenTelemetry configuration
-
-
Method Details
-
now
- Returns:
- The current time based on the configuration's clock
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
locale
-
clock
-
databases
-
databaseConfiguration
Returns the value of thedatabaseConfigurationrecord component.- Returns:
- the value of the
databaseConfigurationrecord component
-
mailConfiguration
Returns the value of themailConfigurationrecord component.- Returns:
- the value of the
mailConfigurationrecord component
-
userApiAddress
Returns the value of theuserApiAddressrecord component.- Returns:
- the value of the
userApiAddressrecord component
-
userViewAddress
Returns the value of theuserViewAddressrecord component.- Returns:
- the value of the
userViewAddressrecord component
-
adminApiAddress
Returns the value of theadminApiAddressrecord component.- Returns:
- the value of the
adminApiAddressrecord component
-
sessions
-
branding
-
history
-
rateLimit
-
maintenanceConfiguration
Returns the value of themaintenanceConfigurationrecord component.- Returns:
- the value of the
maintenanceConfigurationrecord component
-
passwordExpiration
Returns the value of thepasswordExpirationrecord component.- Returns:
- the value of the
passwordExpirationrecord component
-
openTelemetry
Returns the value of theopenTelemetryrecord component.- Returns:
- the value of the
openTelemetryrecord component
-