Record Class SessionDecision.RequireLogin
java.lang.Object
java.lang.Record
com.svenruppert.jsentinel.session.SessionDecision.RequireLogin
- Record Components:
loginRoute- target route to forward to (e.g."/login")
- All Implemented Interfaces:
SessionDecision
- Enclosing interface:
SessionDecision
public static record SessionDecision.RequireLogin(String loginRoute)
extends Record
implements SessionDecision
The subject must re-authenticate. The session itself can stay alive
— only the subject snapshot must be dropped.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SessionDecision
SessionDecision.Continue, SessionDecision.Invalidate, SessionDecision.RequireLoginModifier and TypeInterfaceDescriptionstatic final recordThe navigation may proceed unchanged.static final recordThe session must be invalidated.static final recordThe subject must re-authenticate. -
Constructor Summary
ConstructorsConstructorDescriptionRequireLogin(String loginRoute) Creates an instance of aRequireLoginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theloginRouterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequireLogin
Creates an instance of aRequireLoginrecord class.- Parameters:
loginRoute- the value for theloginRouterecord component
-
-
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). -
loginRoute
Returns the value of theloginRouterecord component.- Returns:
- the value of the
loginRouterecord component
-