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(PolicyIndex policyIndex, com.sun.xacml.combine.PolicyCombiningAlgorithm combiningAlg)
           
 
Method Summary
 com.sun.xacml.finder.PolicyFinderResult findPolicy(com.sun.xacml.EvaluationCtx context)
          Finds a policy based on a request's context.
 void init()
          Initialize this module.
 void init(com.sun.xacml.finder.PolicyFinder policyFinder)
           
 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(PolicyIndex policyIndex,
                                 com.sun.xacml.combine.PolicyCombiningAlgorithm combiningAlg)
                          throws PolicyIndexException,
                                 URISyntaxException
Throws:
PolicyIndexException
URISyntaxException
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()
          throws MelcoePDPException
Initialize this module. Typically this is called by PolicyFinder when a PDP is created.

Throws:
MelcoePDPException

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

init

public void init(com.sun.xacml.finder.PolicyFinder policyFinder)
Specified by:
init in class com.sun.xacml.finder.PolicyFinderModule


Copyright © 2012 DuraSpace. All Rights Reserved.