public abstract class AbstractPIPAttributeFinder extends Object implements PIPAttributeFinder
Modifier and Type | Field and Description |
---|---|
protected int |
tenantId |
Constructor and Description |
---|
AbstractPIPAttributeFinder() |
Modifier and Type | Method and Description |
---|---|
void |
clearCache()
Clears the entire cache.
|
void |
clearCache(String[] attributeId)
Clears only the cached attribute by name.
|
abstract Set<String> |
getAttributeValues(String subject,
String resource,
String action,
String environment,
String attributeId,
String issuer)
This is the overloaded simplify version of the getAttributeValues() method.
|
Set<String> |
getAttributeValues(URI attributeType,
URI attributeId,
URI category,
String issuer,
org.wso2.balana.ctx.EvaluationCtx evaluationCtx)
Will be fired by CarbonAttributeFinder whenever it finds an attribute supported by this
module.
|
boolean |
overrideDefaultCache()
This is to inform whether to ignore caching of attributes registered for this attribute finer
or not.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModuleName, getSupportedAttributes, init
public abstract Set<String> getAttributeValues(String subject, String resource, String action, String environment, String attributeId, String issuer) throws Exception
AbstractPIPAttributeFinder
can implement this method and get use of the default
implementation of the getAttributeValues() method which has been implemented within
AbstractPIPAttributeFinder
classsubject
- Name of the subject the returned attributes should apply to.resource
- The name of the resource the subject is trying to access.action
- The name of the action the subject is trying to execute on resourceenvironment
- The name of the environment the subject is trying to access the resourceattributeId
- The unique id of the required attribute.issuer
- The attribute issuer.Set
of String
s that represent the attribute
values.Exception
- throws if failspublic Set<String> getAttributeValues(URI attributeType, URI attributeId, URI category, String issuer, org.wso2.balana.ctx.EvaluationCtx evaluationCtx) throws Exception
PIPAttributeFinder
EvaluationCtx
which encapsulates the XACML request.getAttributeValues
in interface PIPAttributeFinder
attributeId
- The unique id of the required attribute.category
- Category of the subjectissuer
- The attribute issuer.evaluationCtx
- EvaluationCtx which encapsulates the XACML request.Set
of String
s that represent the attribute
values.Exception
- throws, if failspublic boolean overrideDefaultCache()
PIPAttributeFinder
overrideDefaultCache
in interface PIPAttributeFinder
public void clearCache()
PIPAttributeFinder
clearCache
in interface PIPAttributeFinder
public void clearCache(String[] attributeId)
PIPAttributeFinder
clearCache
in interface PIPAttributeFinder
attributeId
- attributeId that needs to be clearedCopyright © 2016 WSO2. All rights reserved.