org.apache.cocoon.auth.impl
Class PipelineSecurityHandler.PipelineSHUser

java.lang.Object
  extended byorg.apache.cocoon.auth.impl.StandardUser
      extended byorg.apache.cocoon.auth.impl.PipelineSecurityHandler.PipelineSHUser
All Implemented Interfaces:
Serializable, org.apache.cocoon.auth.User
Enclosing class:
PipelineSecurityHandler

public static class PipelineSecurityHandler.PipelineSHUser
extends StandardUser

The internal user class.

See Also:
Serialized Form

Field Summary
protected  Document userInfo
          The document delivered by the pipeline.
 
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
PipelineSecurityHandler.PipelineSHUser(Document info, String id)
          Create a new user object.
 
Method Summary
protected  void calculateContextInfo()
          Internal method that calculates the context information.
 Document getUserInfo()
          Return the pipeline document.
 
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

userInfo

protected final Document userInfo
The document delivered by the pipeline.

Constructor Detail

PipelineSecurityHandler.PipelineSHUser

public PipelineSecurityHandler.PipelineSHUser(Document info,
                                              String id)
Create a new user object.

Parameters:
info - The pipeline document.
id - The unique id of the user.
Method Detail

getUserInfo

public Document getUserInfo()
Return the pipeline document.

Returns:
The document.

calculateContextInfo

protected void calculateContextInfo()
Internal method that calculates the context information. All key-value pairs contained in the document are added as attributes to the user object.



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