org.apache.cocoon.auth.impl
Class ServletSecurityHandler.ServletUser

java.lang.Object
  extended by org.apache.cocoon.auth.StandardUser
      extended by org.apache.cocoon.auth.impl.ServletSecurityHandler.ServletUser
All Implemented Interfaces:
Serializable, User
Enclosing class:
ServletSecurityHandler

public static class ServletSecurityHandler.ServletUser
extends StandardUser

Inner class for the current user. This class provides access to some servlet specific information.

See Also:
Serialized Form

Field Summary
protected  Principal principal
          The principal belonging to the user.
 
Fields inherited from class org.apache.cocoon.auth.StandardUser
attributes, id, roles
 
Constructor Summary
ServletSecurityHandler.ServletUser(Request req)
          Instantiate a new user.
 
Method Summary
 Principal getPrincipal()
          Return the current principal.
 
Methods inherited from class org.apache.cocoon.auth.StandardUser
getAttribute, getAttributeNames, getId, isUserInRole, removeAttribute, setAttribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

principal

protected final Principal principal
The principal belonging to the user.

Constructor Detail

ServletSecurityHandler.ServletUser

public ServletSecurityHandler.ServletUser(Request req)
Instantiate a new user.

Parameters:
req - The current request.
Method Detail

getPrincipal

public Principal getPrincipal()
Return the current principal.

Returns:
The principal.


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.