Interface IAuthManager

All Superinterfaces:
IComponent, IComponentProvider, IInitializable, IURIResolver

public interface IAuthManager extends IComponentProvider
Handles authentication logic for the PortalSystem
  • Method Details

    • handleAuth

      IAuthInfo handleAuth(HttpServletRequest request) throws PortalException
      Create a default AuthInfo object and associate it with the user's session.
      Then Iterate through the registered IAuthHandlers until a true is returned. At the end of this call, if authorization information was found, the AuthInfo will be returned
      Parameters:
      request -
      Returns:
      Throws:
      PortalException
    • shouldReAuth

      boolean shouldReAuth(HttpServletRequest request) throws PortalException
      Iterate through the registered IAuthHandlers. If the auth handler implements the IReAuthHandler interface, check if the auth handler wants the auth credentials to be reauthenticated.
      Parameters:
      request - the HttpServletRequest to check
      Returns:
      true if this request should re-authenticate the auth credentials, false otherwise.
      Throws:
      PortalException
    • getAuthInfo

      IAuthInfo getAuthInfo(HttpSession session) throws PortalException
      Return the current auth info for the session
      Parameters:
      session - the session to get the auth info for
      Returns:
      the auth info for the session or null if not found
      Throws:
      PortalException
    • createAuthInfo

      IAuthInfo createAuthInfo() throws PortalException
      Factory to create a new authinfo object
      Returns:
      the new auth info object
      Throws:
      PortalException