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 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, 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, 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.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, 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 configurationpasswordExpiration- The password expiration configurationopenTelemetry- The OpenTelemetry configuration
-
-
Method Details
-
now
- Returns:
- The current time based on the configuration's clock
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
clock
Returns the value of theclockrecord component.- Returns:
- the value of the
clockrecord component
-
databases
Returns the value of thedatabasesrecord component.- Returns:
- the value of the
databasesrecord component
-
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
Returns the value of thesessionsrecord component.- Returns:
- the value of the
sessionsrecord component
-
branding
Returns the value of thebrandingrecord component.- Returns:
- the value of the
brandingrecord component
-
history
Returns the value of thehistoryrecord component.- Returns:
- the value of the
historyrecord component
-
rateLimit
Returns the value of therateLimitrecord component.- Returns:
- the value of the
rateLimitrecord 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
-