Class ServletAuthenticatedUser

  • All Implemented Interfaces:
    AuthenticatedUser

    public class ServletAuthenticatedUser
    extends java.lang.Object
    implements AuthenticatedUser
    ServletAuthenticatedUser is a sligtly odd implementation of AuthenticatedUser. It serves to store an HttpServletRequest, so that request can be used by the ServletSecurityProvider to check roles.
    Author:
    Glen Daniels (gdaniels@apache.org)
    • Constructor Summary

      Constructors 
      Constructor Description
      ServletAuthenticatedUser​(javax.servlet.http.HttpServletRequest req)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getName()
      Return a string representation of the user's name.
      javax.servlet.http.HttpServletRequest getRequest()  
      • Methods inherited from class java.lang.Object

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

      • ServletAuthenticatedUser

        public ServletAuthenticatedUser​(javax.servlet.http.HttpServletRequest req)
    • Method Detail

      • getName

        public java.lang.String getName()
        Return a string representation of the user's name.
        Specified by:
        getName in interface AuthenticatedUser
        Returns:
        the user's name as a String.
      • getRequest

        public javax.servlet.http.HttpServletRequest getRequest()