Class JPPFServletContainerAuthenticatedWebSession

java.lang.Object
org.apache.wicket.Session
org.apache.wicket.protocol.http.WebSession
org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
org.apache.wicket.authroles.authentication.AuthenticatedWebSession
org.jppf.admin.web.security.JPPFServletContainerAuthenticatedWebSession
All Implemented Interfaces:
Serializable, org.apache.wicket.event.IEventSink, org.apache.wicket.feedback.IFeedbackContributor, org.apache.wicket.IMetadataContext<Serializable,org.apache.wicket.Session>, org.apache.wicket.util.io.IClusterable
Direct Known Subclasses:
JPPFWebSession

public class JPPFServletContainerAuthenticatedWebSession extends org.apache.wicket.authroles.authentication.AuthenticatedWebSession
Adapted from org.wicketstuff.wicket.servlet3.auth.ServletContainerAuthenticatedWebSession without final for extensibility.
See Also:
  • Field Summary

    Fields inherited from class org.apache.wicket.Session

    clientInfo, SESSION_ATTRIBUTE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    JPPFServletContainerAuthenticatedWebSession(org.apache.wicket.request.Request request)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    authenticate(String username, String password)
     
    get()
     
    protected jakarta.servlet.http.HttpServletRequest
     
    org.apache.wicket.authroles.authorization.strategies.role.Roles
     
    Convenience method to retrieve authenticated users id.
    void
     

    Methods inherited from class org.apache.wicket.authroles.authentication.AuthenticatedWebSession

    invalidate, isSignedIn, signIn, signIn

    Methods inherited from class org.apache.wicket.protocol.http.WebSession

    generateNewSessionId, getClientInfo, newBrowserInfoPage

    Methods inherited from class org.apache.wicket.Session

    bind, changeSessionId, clear, debug, detach, dirty, dirty, endRequest, error, exists, fatal, getApplication, getAttribute, getAttributeNames, getAuthorizationStrategy, getClassResolver, getFeedbackMessages, getId, getLocale, getMetaData, getPageFactory, getPageManager, getSessionStore, getSizeInBytes, getStyle, info, internalDetach, invalidateNow, isRtlLanguage, isRtlLocale, isSessionInvalidated, isTemporary, newPageAccessSynchronizer, nextPageId, nextSequenceValue, onEvent, onInvalidate, removeAttribute, replaceSession, setAttribute, setClientInfo, setLocale, setMetaData, setStyle, success, warn

    Methods inherited from class java.lang.Object

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

    • JPPFServletContainerAuthenticatedWebSession

      public JPPFServletContainerAuthenticatedWebSession(org.apache.wicket.request.Request request)
  • Method Details

    • get

      Returns:
      Current authenticated web session
    • getUserName

      public String getUserName()
      Convenience method to retrieve authenticated users id.
      Returns:
      name member of Principal object in servlet 3 request
    • getRoles

      public org.apache.wicket.authroles.authorization.strategies.role.Roles getRoles()
      Specified by:
      getRoles in class org.apache.wicket.authroles.authentication.AbstractAuthenticatedWebSession
    • signOut

      public void signOut()
      Overrides:
      signOut in class org.apache.wicket.authroles.authentication.AuthenticatedWebSession
    • authenticate

      public boolean authenticate(String username, String password)
      Specified by:
      authenticate in class org.apache.wicket.authroles.authentication.AuthenticatedWebSession
    • getRequest

      protected jakarta.servlet.http.HttpServletRequest getRequest()