Package com.io7m.idstore.server.api
Record Class IdServerMailConfiguration
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerMailConfiguration
- Record Components:
transportConfiguration- The transport configurationauthenticationConfiguration- The authentication configurationsenderAddress- The sender addressverificationExpiration- The maximum age of email verifications
- All Implemented Interfaces:
IdServerJSONConfigurationElementType
public record IdServerMailConfiguration(IdServerMailTransportConfigurationType transportConfiguration, Optional<IdServerMailAuthenticationConfiguration> authenticationConfiguration, String senderAddress, Duration verificationExpiration)
extends Record
implements IdServerJSONConfigurationElementType
Configuration for the part of the server that sends mail.
-
Constructor Summary
ConstructorsConstructorDescriptionIdServerMailConfiguration(IdServerMailTransportConfigurationType transportConfiguration, Optional<IdServerMailAuthenticationConfiguration> authenticationConfiguration, String senderAddress, Duration verificationExpiration) Configuration for the part of the server that sends mail. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauthenticationConfigurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesenderAddressrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportConfigurationrecord component.Returns the value of theverificationExpirationrecord component.
-
Constructor Details
-
IdServerMailConfiguration
public IdServerMailConfiguration(IdServerMailTransportConfigurationType transportConfiguration, Optional<IdServerMailAuthenticationConfiguration> authenticationConfiguration, String senderAddress, Duration verificationExpiration) Configuration for the part of the server that sends mail.- Parameters:
transportConfiguration- The transport configurationauthenticationConfiguration- The authentication configurationsenderAddress- The sender addressverificationExpiration- The maximum age of email verifications
-
-
Method Details
-
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). -
transportConfiguration
Returns the value of thetransportConfigurationrecord component.- Returns:
- the value of the
transportConfigurationrecord component
-
authenticationConfiguration
Returns the value of theauthenticationConfigurationrecord component.- Returns:
- the value of the
authenticationConfigurationrecord component
-
senderAddress
Returns the value of thesenderAddressrecord component.- Returns:
- the value of the
senderAddressrecord component
-
verificationExpiration
Returns the value of theverificationExpirationrecord component.- Returns:
- the value of the
verificationExpirationrecord component
-