org.fcrepo.server.security.xacml.pdp.finder.policy
Class GenericPolicyFinderModule

java.lang.Object
  extended by com.sun.xacml.finder.PolicyFinderModule
      extended by org.fcrepo.server.security.xacml.pdp.finder.policy.GenericPolicyFinderModule

public class GenericPolicyFinderModule
extends com.sun.xacml.finder.PolicyFinderModule

This is the PolicyFinderModule for the PDP. Its purpose is to basically find policies. It interacts with a PolicyManager in order to obtain a policy or policy set.

Author:
nishen@melcoe.mq.edu.au

Constructor Summary
GenericPolicyFinderModule()
           
 
Method Summary
 com.sun.xacml.finder.PolicyFinderResult findPolicy(com.sun.xacml.EvaluationCtx context)
          Finds a policy based on a request's context.
 void init(com.sun.xacml.finder.PolicyFinder finder)
          Initialize this module.
 boolean isRequestSupported()
          Always returns true since this module does support finding policies based on context.
 
Methods inherited from class com.sun.xacml.finder.PolicyFinderModule
findPolicy, getIdentifier, invalidateCache, isIdReferenceSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericPolicyFinderModule

public GenericPolicyFinderModule()
Method Detail

isRequestSupported

public boolean isRequestSupported()
Always returns true since this module does support finding policies based on context.

Overrides:
isRequestSupported in class com.sun.xacml.finder.PolicyFinderModule
Returns:
true

init

public void init(com.sun.xacml.finder.PolicyFinder finder)
Initialize this module. Typically this is called by PolicyFinder when a PDP is created.

Specified by:
init in class com.sun.xacml.finder.PolicyFinderModule
Parameters:
finder - the PolicyFinder using this module

findPolicy

public com.sun.xacml.finder.PolicyFinderResult findPolicy(com.sun.xacml.EvaluationCtx context)
Finds a policy based on a request's context. If more than one policy matches, then this either returns an error or a new policy wrapping the multiple policies (depending on which constructor was used to construct this instance).

Overrides:
findPolicy in class com.sun.xacml.finder.PolicyFinderModule
Parameters:
context - the representation of the request data
Returns:
the result of trying to find an applicable policy


Copyright © 2011 DuraSpace. All Rights Reserved.