Interface Sessions<D,S>

Type Parameters:
D - deployment identifier type
S - session identifier type

public interface Sessions<D,S>
Represents the sessions per deployment for which a given user is authenticated.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    addSession(D deployment, S session)
    Adds the specified web application and session identifier to the registry of authenticated web applications.
    Returns the set of web applications for which the current user is authenticated.
    getSession(D deployment)
    Returns the corresponding session identifier for the specified web application.
    removeSession(D deployment)
    Removes the specified web application from the set of authenticated web applications.
  • Method Details

    • getDeployments

      Set<D> getDeployments()
      Returns the set of web applications for which the current user is authenticated.
      Returns:
      a set of web applications.
    • getSession

      S getSession(D deployment)
      Returns the corresponding session identifier for the specified web application.
      Parameters:
      application -
      Returns:
    • removeSession

      S removeSession(D deployment)
      Removes the specified web application from the set of authenticated web applications.
      Parameters:
      application -
    • addSession

      boolean addSession(D deployment, S session)
      Adds the specified web application and session identifier to the registry of authenticated web applications.
      Parameters:
      deployment - a web application
      session - a session
      Returns:
      true, if the session was added, false it already exists