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

java.lang.Object
  extended byorg.apache.cocoon.auth.impl.StandardUser
      extended byorg.apache.cocoon.auth.impl.ServletSecurityHandler.ServletUser
All Implemented Interfaces:
Serializable, org.apache.cocoon.auth.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.impl.StandardUser
attributes, id, roles
 
Fields inherited from interface org.apache.cocoon.auth.User
ATTRIBUTE_PRINCIPAL
 
Constructor Summary
ServletSecurityHandler.ServletUser(org.apache.cocoon.environment.Request req)
          Instantiate a new user.
 
Method Summary
 Principal getPrincipal()
          Return the current principal.
 
Methods inherited from class org.apache.cocoon.auth.impl.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(org.apache.cocoon.environment.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-2008 The Apache Software Foundation. All Rights Reserved.