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
ConstructorDescriptionIdServerConfiguration
(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 theadminApiAddress
record component.branding()
Returns the value of thebranding
record component.clock()
Returns the value of theclock
record component.Returns the value of thedatabaseConfiguration
record component.Returns the value of thedatabases
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.history()
Returns the value of thehistory
record component.locale()
Returns the value of thelocale
record component.Returns the value of themailConfiguration
record component.Returns the value of themaintenanceConfiguration
record component.now()
Returns the value of theopenTelemetry
record component.Returns the value of thepasswordExpiration
record component.Returns the value of therateLimit
record component.sessions()
Returns the value of thesessions
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theuserApiAddress
record component.Returns the value of theuserViewAddress
record 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
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 thelocale
record component.- Returns:
- the value of the
locale
record component
-
clock
Returns the value of theclock
record component.- Returns:
- the value of the
clock
record component
-
databases
Returns the value of thedatabases
record component.- Returns:
- the value of the
databases
record component
-
databaseConfiguration
Returns the value of thedatabaseConfiguration
record component.- Returns:
- the value of the
databaseConfiguration
record component
-
mailConfiguration
Returns the value of themailConfiguration
record component.- Returns:
- the value of the
mailConfiguration
record component
-
userApiAddress
Returns the value of theuserApiAddress
record component.- Returns:
- the value of the
userApiAddress
record component
-
userViewAddress
Returns the value of theuserViewAddress
record component.- Returns:
- the value of the
userViewAddress
record component
-
adminApiAddress
Returns the value of theadminApiAddress
record component.- Returns:
- the value of the
adminApiAddress
record component
-
sessions
Returns the value of thesessions
record component.- Returns:
- the value of the
sessions
record component
-
branding
Returns the value of thebranding
record component.- Returns:
- the value of the
branding
record component
-
history
Returns the value of thehistory
record component.- Returns:
- the value of the
history
record component
-
rateLimit
Returns the value of therateLimit
record component.- Returns:
- the value of the
rateLimit
record component
-
maintenanceConfiguration
Returns the value of themaintenanceConfiguration
record component.- Returns:
- the value of the
maintenanceConfiguration
record component
-
passwordExpiration
Returns the value of thepasswordExpiration
record component.- Returns:
- the value of the
passwordExpiration
record component
-
openTelemetry
Returns the value of theopenTelemetry
record component.- Returns:
- the value of the
openTelemetry
record component
-