|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.security.spi.AccessResponseCollector
This class is used to collect AccessResponse
objects from authorization providers.
Authorization providers capable of returning extended authorization data can detect that it has been requested
by detecting a special element in the ContextHandler passed to the provider during authorization. The special element
is named using AccessResponseCollector.CONTEXT_ATTR_NAME
and contains a AccessResponseCollector
value which the provider may append an AccessResponse
object into. Not all AccessResponse
objects appended into the collector will necessarily be returned to the caller. The adjudication provider may apply
an AccessResponseFilter
to the collector to remove particular AccessResponse
objects based
on the final authorization decision.
Field Summary | |
static java.lang.String |
CONTEXT_ATTR_NAME
The element name used when storing a AccessResponseCollector inside of a request context. |
static java.lang.String |
CONTEXT_ATTR_NAMESPACE
The reserved namespace used when storing a AccessResponseCollector inside of a request context. |
static java.lang.String |
CONTEXT_ATTR_UNQUALIFIED_NAME
The unqualified element name used when storing a AccessResponseCollector inside of a request context. |
Constructor Summary | |
AccessResponseCollector()
Construct a new AccessResponseCollector . |
Method Summary | |
void |
appendAccessResponse(AccessResponse response)
Add a response to the collector. |
void |
applyFilter()
Filter responses based on installed filter. |
ContextHandler[] |
getResponseContexts()
Get an array of all response Contexts in the collector. |
void |
installFilter(AccessResponseFilter filter)
Sets the response filter to be used with this collector. |
static ContextElement |
makeContextElement()
Construct a ContextElement containing a AccessResponseCollector , and the appropriate name and namespace |
void |
removeAllAccessResponses()
Removes all AccessResponses associated with this object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String CONTEXT_ATTR_NAMESPACE
public static final java.lang.String CONTEXT_ATTR_UNQUALIFIED_NAME
public static final java.lang.String CONTEXT_ATTR_NAME
Constructor Detail |
public AccessResponseCollector()
AccessResponseCollector
.Method Detail |
public static ContextElement makeContextElement()
ContextElement
containing a AccessResponseCollector
, and the appropriate name and namespace
ContextElement
with name and namespace filled in.public void appendAccessResponse(AccessResponse response)
response
- An AccessResponse
object to be added to the collector.public void installFilter(AccessResponseFilter filter)
filter
- The filter to be used, null
indicates that no filtering will be performedpublic void applyFilter()
public ContextHandler[] getResponseContexts()
null
is returned if the filter has not been applied.
ContextHandler
objects held within the collector.public void removeAllAccessResponses()
AccessResponses
associated with this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |