Interface ListSessions

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ListSessions

This interface to be able to list all the active sessions in a SessionManager without having to store them all in memory.

Since:
1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    foundSession(long userId, String authData, String authId)
    This method is called when active authentication session was found.
  • Method Details

    • foundSession

      boolean foundSession(long userId, String authData, String authId)

      This method is called when active authentication session was found.

      Parameters:
      userId - the unique ID of the user
      authData - data that was associated with the session when it was initiated
      authId - the unique identifier of this authentication session
      Returns:
      true when the next active session should be returned; or

      false if the process should be interrupted

      Since:
      1.0