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
ConstructorDescriptionIdServerMailConfiguration
(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 theauthenticationConfiguration
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.Returns the value of thesenderAddress
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransportConfiguration
record component.Returns the value of theverificationExpiration
record 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
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)
. -
transportConfiguration
Returns the value of thetransportConfiguration
record component.- Returns:
- the value of the
transportConfiguration
record component
-
authenticationConfiguration
Returns the value of theauthenticationConfiguration
record component.- Returns:
- the value of the
authenticationConfiguration
record component
-
senderAddress
Returns the value of thesenderAddress
record component.- Returns:
- the value of the
senderAddress
record component
-
verificationExpiration
Returns the value of theverificationExpiration
record component.- Returns:
- the value of the
verificationExpiration
record component
-