Record Class AuthenticatedUserAuthSessionPredicate
java.lang.Object
java.lang.Record
org.keycloak.models.sessions.infinispan.stream.AuthenticatedUserAuthSessionPredicate
- Record Components:
realmId- The Realm ID.userId- The authenticated User ID.rootAuthenticationSessionIdToKeep- Optional root authentication session id to keep;nullkeeps none.
- All Implemented Interfaces:
Predicate<SessionEntityWrapper<RootAuthenticationSessionEntity>>
@ProtoTypeId(65623)
@Proto
public record AuthenticatedUserAuthSessionPredicate(String realmId, String userId, String rootAuthenticationSessionIdToKeep)
extends Record
implements Predicate<SessionEntityWrapper<RootAuthenticationSessionEntity>>
A
Predicate to match RootAuthenticationSessionEntity values that hold an in progress
authentication session for the given user in the given realm, except for an optional root session id to keep.-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticatedUserAuthSessionPredicate(String realmId, String userId, String rootAuthenticationSessionIdToKeep) Creates an instance of aAuthenticatedUserAuthSessionPredicaterecord 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.realmId()Returns the value of therealmIdrecord component.Returns the value of therootAuthenticationSessionIdToKeeprecord component.booleanfinal StringtoString()Returns a string representation of this record class.userId()Returns the value of theuserIdrecord component.
-
Constructor Details
-
AuthenticatedUserAuthSessionPredicate
public AuthenticatedUserAuthSessionPredicate(String realmId, String userId, String rootAuthenticationSessionIdToKeep) Creates an instance of aAuthenticatedUserAuthSessionPredicaterecord class.- Parameters:
realmId- the value for therealmIdrecord componentuserId- the value for theuserIdrecord componentrootAuthenticationSessionIdToKeep- the value for therootAuthenticationSessionIdToKeeprecord component
-
-
Method Details
-
test
- Specified by:
testin interfacePredicate<SessionEntityWrapper<RootAuthenticationSessionEntity>>
-
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). -
realmId
Returns the value of therealmIdrecord component.- Returns:
- the value of the
realmIdrecord component
-
userId
Returns the value of theuserIdrecord component.- Returns:
- the value of the
userIdrecord component
-
rootAuthenticationSessionIdToKeep
Returns the value of therootAuthenticationSessionIdToKeeprecord component.- Returns:
- the value of the
rootAuthenticationSessionIdToKeeprecord component
-