Class ComponentConfig

java.lang.Object
org.pac4j.springframework.component.ComponentConfig

@Configuration public class ComponentConfig extends Object
The configuration of the pac4j components.
Since:
3.2.0
Author:
Jerome Leleu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.pac4j.core.config.Config
    The security config.
    protected jakarta.servlet.http.HttpServletRequest
    The HTTP request.
    protected jakarta.servlet.http.HttpServletResponse
    The HTTP response.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.pac4j.core.profile.ProfileManager
    Retrieve the current profile manager.
    org.pac4j.core.context.session.SessionStore
    Retrieve the current session store.
    org.pac4j.jee.context.JEEContext
    Retrieve the current web context.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • request

      @Autowired protected jakarta.servlet.http.HttpServletRequest request
      The HTTP request.
    • response

      @Autowired protected jakarta.servlet.http.HttpServletResponse response
      The HTTP response.
    • config

      @Autowired(required=false) protected org.pac4j.core.config.Config config
      The security config.
  • Constructor Details

    • ComponentConfig

      public ComponentConfig()
  • Method Details

    • getSessionStore

      @Bean @RequestScope public org.pac4j.core.context.session.SessionStore getSessionStore()
      Retrieve the current session store.
      Returns:
      the session store
    • getWebContext

      @Bean @RequestScope public org.pac4j.jee.context.JEEContext getWebContext()
      Retrieve the current web context.
      Returns:
      the web context
    • getProfileManager

      @Bean @RequestScope public org.pac4j.core.profile.ProfileManager getProfileManager()
      Retrieve the current profile manager.
      Returns:
      the profile manager