Record Class SessionEligibilityPolicy.Context
java.lang.Object
java.lang.Record
io.leandev.appfuse.security.auth.SessionEligibilityPolicy.Context
- Enclosing interface:
SessionEligibilityPolicy
public static record SessionEligibilityPolicy.Context(RefreshSessionStore.Session session, AuthPrincipal subjectPrincipal, AuthPrincipal actorPrincipal, List<String> grantors, Instant now)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContext(RefreshSessionStore.Session session, AuthPrincipal subjectPrincipal, AuthPrincipal actorPrincipal, List<String> grantors, Instant now) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactorPrincipalrecord component.final booleanIndicates whether some other object is "equal to" this one.grantors()Returns the value of thegrantorsrecord component.final inthashCode()Returns a hash code value for this object.now()Returns the value of thenowrecord component.session()Returns the value of thesessionrecord component.Returns the value of thesubjectPrincipalrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
public Context(RefreshSessionStore.Session session, AuthPrincipal subjectPrincipal, AuthPrincipal actorPrincipal, List<String> grantors, Instant now) Creates an instance of aContextrecord class.- Parameters:
session- the value for thesessionrecord componentsubjectPrincipal- the value for thesubjectPrincipalrecord componentactorPrincipal- the value for theactorPrincipalrecord componentgrantors- the value for thegrantorsrecord componentnow- the value for thenowrecord 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). -
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
subjectPrincipal
Returns the value of thesubjectPrincipalrecord component.- Returns:
- the value of the
subjectPrincipalrecord component
-
actorPrincipal
Returns the value of theactorPrincipalrecord component.- Returns:
- the value of the
actorPrincipalrecord component
-
grantors
-
now
Returns the value of thenowrecord component.- Returns:
- the value of the
nowrecord component
-