org.fcrepo.server.security.xacml.pdp.finder.attribute
Class LDAPAttributeFinder
java.lang.Object
com.sun.xacml.finder.AttributeFinderModule
org.fcrepo.server.security.AttributeFinderModule
org.fcrepo.server.security.xacml.pdp.finder.attribute.DesignatorAttributeFinderModule
org.fcrepo.server.security.xacml.pdp.finder.attribute.LDAPAttributeFinder
public class LDAPAttributeFinder
- extends DesignatorAttributeFinderModule
|
Method Summary |
com.sun.xacml.cond.EvaluationResult |
findAttribute(URI attributeType,
URI attributeId,
URI issuer,
URI subjectCategory,
com.sun.xacml.EvaluationCtx context,
int designatorType)
Used to get an attribute. |
void |
init()
|
boolean |
isDesignatorSupported()
Returns true always because this module supports designators. |
static void |
main(String[] args)
|
| Methods inherited from class com.sun.xacml.finder.AttributeFinderModule |
findAttribute, getIdentifier, getSupportedIds, invalidateCache, isSelectorSupported |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPAttributeFinder
public LDAPAttributeFinder(Map<String,String> options)
init
public void init()
throws AttributeFinderException
- Throws:
AttributeFinderException
isDesignatorSupported
public boolean isDesignatorSupported()
- Returns true always because this module supports designators.
- Overrides:
isDesignatorSupported in class DesignatorAttributeFinderModule
- Returns:
- true always
findAttribute
public com.sun.xacml.cond.EvaluationResult findAttribute(URI attributeType,
URI attributeId,
URI issuer,
URI subjectCategory,
com.sun.xacml.EvaluationCtx context,
int designatorType)
- Used to get an attribute. If one of those values isn't being asked for,
or if the types are wrong, then an empty bag is returned.
- Overrides:
findAttribute in class AttributeFinderModule
- Parameters:
attributeType - the datatype of the attributes to find, which must be time, date,
or dateTime for this module to resolve a valueattributeId - the identifier of the attributes to find, which must be one of the
three ENVIRONMENT_* fields for this module to resolve a valueissuer - the issuer of the attributes, or null if unspecifiedsubjectCategory - the category of the attribute or null, which ignored since this
only handles non-subjectscontext - the representation of the request datadesignatorType - the type of designator, which must be ENVIRONMENT_TARGET for this
module to resolve a value
- Returns:
- the result of attribute retrieval, which will be a bag with a
single attribute, an empty bag, or an error
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2012 DuraSpace. All Rights Reserved.