Package com.io7m.idstore.server.api
Record Class IdServerSessionConfiguration
java.lang.Object
java.lang.Record
com.io7m.idstore.server.api.IdServerSessionConfiguration
- Record Components:
userSessionExpiration
- The expiration time for inactive user sessionsadminSessionExpiration
- The expiration time for inactive admin sessions
public record IdServerSessionConfiguration(Duration userSessionExpiration, Duration adminSessionExpiration)
extends Record
Configuration for user and admin login sessions.
-
Constructor Summary
ConstructorDescriptionIdServerSessionConfiguration
(Duration userSessionExpiration, Duration adminSessionExpiration) Configuration for user and admin login sessions. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadminSessionExpiration
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.final String
toString()
Returns a string representation of this record class.Returns the value of theuserSessionExpiration
record component.
-
Constructor Details
-
IdServerSessionConfiguration
public IdServerSessionConfiguration(Duration userSessionExpiration, Duration adminSessionExpiration) Configuration for user and admin login sessions.- Parameters:
userSessionExpiration
- The expiration time for inactive user sessionsadminSessionExpiration
- The expiration time for inactive admin sessions
-
-
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)
. -
userSessionExpiration
Returns the value of theuserSessionExpiration
record component.- Returns:
- the value of the
userSessionExpiration
record component
-
adminSessionExpiration
Returns the value of theadminSessionExpiration
record component.- Returns:
- the value of the
adminSessionExpiration
record component
-