com.bea.security.spi
Class SimpleAccessResponseFilter
java.lang.Object
|
+--com.bea.security.spi.AccessResponseFilter
|
+--com.bea.security.spi.SimpleAccessResponseFilter
- public class SimpleAccessResponseFilter
- extends AccessResponseFilter
This class is used to filter AccessResponse
objects from an AccessResponseCollector
.
The filtering algorithm used in this implementation only allows responses which match the adjudicators
decision. That is is the adjudicator returned true
then PERMIT
responses
are allowed. If the adjudicator returned false
then DENY
responses are allowed.
ABSTAIN
results are always allowed through. If different filtering logic is
desired a custom Adjudicator
implementation may install a custom AccessResponseFilter
to provide a different filtering scheme.
This is the default filter used if the adjudicator does not specify its own.
- Author:
- Copyright © 2004-2008, Oracle and/or its affiliates. All rights reserved.
Method Summary
|
boolean |
isAllowed(AccessResponse response)
Tests to see if the supplied response is allowed in the final result set returned to the application. |
void |
setAdjudicationResult(boolean adjudicationResult)
Set adjudication result |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleAccessResponseFilter
public SimpleAccessResponseFilter()
- Construct a simple filter.
setAdjudicationResult
public void setAdjudicationResult(boolean adjudicationResult)
- Set adjudication result
- Parameters:
adjudicationResult
- The result from the adjudicator.
isAllowed
public boolean isAllowed(AccessResponse response)
- Tests to see if the supplied response is allowed in the final result set returned to the application.
- Returns:
- A value of
true
is returned if the response is allowed in the final result or false
if not allowed. - Overrides:
- isAllowed in class AccessResponseFilter