FileDocCategorySizeDatePackage
ServletAuthenticatedUser.javaAPI DocApache Axis 1.41670Sat Apr 22 18:57:28 BST 2006org.apache.axis.security.servlet

ServletAuthenticatedUser

public class ServletAuthenticatedUser extends Object implements org.apache.axis.security.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)

Fields Summary
private String
name
private HttpServletRequest
req
Constructors Summary
public ServletAuthenticatedUser(HttpServletRequest req)

        this.req = req;
        Principal principal = req.getUserPrincipal();
        this.name = (principal == null) ? null : principal.getName();
    
Methods Summary
public java.lang.StringgetName()
Return a string representation of the user's name.

return
the user's name as a String.

        return name;
    
public javax.servlet.http.HttpServletRequestgetRequest()

        return req;