org.fcrepo.server.security.impl
Class AbstractPolicyEnforcementPoint

java.lang.Object
  extended by org.fcrepo.server.security.impl.AbstractPolicyEnforcementPoint
All Implemented Interfaces:
PolicyEnforcementPoint
Direct Known Subclasses:
DefaultPolicyEnforcementPoint

public abstract class AbstractPolicyEnforcementPoint
extends Object
implements PolicyEnforcementPoint


Field Summary
protected  com.sun.xacml.PDP m_pdp
           
protected  com.sun.xacml.PDPConfig m_pdpConfig
           
 
Fields inherited from interface org.fcrepo.server.security.PolicyEnforcementPoint
SUBACTION_SEPARATOR, SUBRESOURCE_SEPARATOR, XACML_ACTION_ID, XACML_RESOURCE_ID, XACML_SUBJECT_ID
 
Constructor Summary
AbstractPolicyEnforcementPoint(com.sun.xacml.PDPConfig pdpConfig)
           
 
Method Summary
protected static boolean denyBiasedAuthz(Set set)
           
 void destroy()
           
 void inactivate()
           
 void init()
           
 void newPdp()
           
protected  Set<com.sun.xacml.ctx.Attribute> wrapActions(String actionId, String actionApi, String contextIndex)
           
protected  Set<com.sun.xacml.ctx.Attribute> wrapResources(String pid, String namespace)
           
protected  Set<com.sun.xacml.ctx.Subject> wrapSubjects(String subjectLoginId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.fcrepo.server.security.PolicyEnforcementPoint
enforce
 

Field Detail

m_pdpConfig

protected final com.sun.xacml.PDPConfig m_pdpConfig

m_pdp

protected com.sun.xacml.PDP m_pdp
Constructor Detail

AbstractPolicyEnforcementPoint

public AbstractPolicyEnforcementPoint(com.sun.xacml.PDPConfig pdpConfig)
Method Detail

init

public void init()
          throws GeneralException
Throws:
GeneralException

newPdp

public final void newPdp()
Specified by:
newPdp in interface PolicyEnforcementPoint

inactivate

public void inactivate()
Specified by:
inactivate in interface PolicyEnforcementPoint

destroy

public void destroy()
Specified by:
destroy in interface PolicyEnforcementPoint

wrapSubjects

protected Set<com.sun.xacml.ctx.Subject> wrapSubjects(String subjectLoginId)

wrapActions

protected Set<com.sun.xacml.ctx.Attribute> wrapActions(String actionId,
                                                       String actionApi,
                                                       String contextIndex)

wrapResources

protected Set<com.sun.xacml.ctx.Attribute> wrapResources(String pid,
                                                         String namespace)
                                                  throws AuthzOperationalException
Throws:
AuthzOperationalException

denyBiasedAuthz

protected static final boolean denyBiasedAuthz(Set set)


Copyright © 2012 DuraSpace. All Rights Reserved.