com.cafesoft.cams.access.attr
Interface ProtoAccessControlRequest

All Superinterfaces:
AccessControlRequest, InternalAccessControlRequest

public interface ProtoAccessControlRequest
extends InternalAccessControlRequest

ProtoAccessControlRequest defines prototype interface changes for AccessControlRequest or InternalAccessControlRequest to support attribute-based access control. The methods in this interface must be integrated into one of these other interface for production use. This class must be disposed of after integration of the prototype code.

Since:
4/30/2004

Method Summary
 void addAttribute(Attribute attr)
          Add an Attribute to the request.
 EvaluationResult getAttribute(URI attrCategory, URI type, URI id)
          Returns attribute value(s) from the access control request.
 AttributeValue getResourceId()
          Returns the resource named in the request as resource-id.
 
Methods inherited from interface com.cafesoft.cams.access.InternalAccessControlRequest
getLoginConfigEntry, getRemoteAddr, getRemoteHost, getResourceRequest, getSecurityDomainName, getSession, getSessionId, isConfidential, setProviderId, setResourceRequest, setSecurityDomainName, setSession
 
Methods inherited from interface com.cafesoft.cams.access.AccessControlRequest
addSessionId, clearSessionIds, getAttributeCategories, getAttributes, getAttributesByCategory, getSessionIds, hasSessionIds, log, setConfidential, setLoginConfigEntry, setRemoteAddr, setRemoteHost
 

Method Detail

addAttribute

void addAttribute(Attribute attr)
Add an Attribute to the request.

Specified by:
addAttribute in interface AccessControlRequest
Parameters:
attr - the Attribute to be added.

getResourceId

AttributeValue getResourceId()
Returns the resource named in the request as resource-id.

Specified by:
getResourceId in interface AccessControlRequest
Returns:
the resource

getAttribute

EvaluationResult getAttribute(URI attrCategory,
                              URI type,
                              URI id)
Returns attribute value(s) from the access control request.

Specified by:
getAttribute in interface AccessControlRequest
Parameters:
attrCategory - the category of the attribute value(s) to find
type - the type of the attribute value(s) to find
id - the id of the attribute value(s) to find
Returns:
a result containing a bag either empty because no values were found or containing at least one value, or status associated with an "indeterminate" result.


Generated on 10:38:35 AM April 14, 2011, © 1996-2010 Cafésoft LLC. All rights reserved.