public interface PolicyFinderModule
Modifier and Type | Field and Description |
---|---|
static int |
ALL_COMBINATIONS
Policy search is done by creating requests from all combinations of the attributes that is
found by policy manage module
|
static int |
COMBINATIONS_BY_CATEGORY
Policy search is done by creating requests from combinations of category of the attributes that is
found by policy manage module
|
static int |
COMBINATIONS_BY_CATEGORY_AND_PARAMETER
Policy search is done by creating requests from combinations of given parameter
and category of the attributes that is found by policy manage module
|
static int |
COMBINATIONS_BY_PARAMETER
Policy search is done by creating requests from combinations of given parameter
of the attributes that is found by policy manage module
|
static int |
NO_COMBINATIONS
Policy search is done by creating requests from the attributes that is
found by policy manage module
|
Modifier and Type | Method and Description |
---|---|
String[] |
getActivePolicies()
gets all supported active policies.
|
String |
getModuleName()
gets name of this module
|
String[] |
getOrderedPolicyIdentifiers()
gets all supported policy ids by this module
if policy ordering is supported by module itself, these policy ids must be ordered
|
String |
getPolicy(String policyId)
gets policy for given policy Id
|
int |
getPolicyOrder(String policyId) |
String |
getReferencedPolicy(String policyId)
gets reference policy for given policy Id
reference policy can not be with PDP policy store, may be in some external policy store
Therefore new method has been add for retrieve reference policies
|
Map<String,Set<AttributeDTO>> |
getSearchAttributes(String identifier,
Set<AttributeDTO> givenAttribute)
gets attributes that are used for policy searching
|
int |
getSupportedSearchAttributesScheme()
gets support attribute searching scheme of this module
|
void |
init(Properties properties)
initializes policy manage module
|
boolean |
isDefaultCategoriesSupported()
returns whether this module supports for default category of policies
if means policies has been written based subject or users, resource, actions and environment
|
boolean |
isPolicyDeActivationSupport()
returns whether this module supports for policy activation or de-activation.
|
boolean |
isPolicyOrderingSupport()
returns whether this module supports for policy ordering.
|
static final int ALL_COMBINATIONS
static final int COMBINATIONS_BY_CATEGORY
static final int COMBINATIONS_BY_PARAMETER
static final int COMBINATIONS_BY_CATEGORY_AND_PARAMETER
static final int NO_COMBINATIONS
void init(Properties properties) throws Exception
properties
- Properties, that need to initialize the moduleException
- throws when initialization is failedString getModuleName()
String[] getActivePolicies()
String[] getOrderedPolicyIdentifiers()
String getPolicy(String policyId)
policyId
- policy id as String valueint getPolicyOrder(String policyId)
String getReferencedPolicy(String policyId)
policyId
- policy id as String valueMap<String,Set<AttributeDTO>> getSearchAttributes(String identifier, Set<AttributeDTO> givenAttribute)
identifier
- unique identifier to separate out search attributesgivenAttribute
- pre-given attributes to retrieve other attributesint getSupportedSearchAttributesScheme()
boolean isDefaultCategoriesSupported()
boolean isPolicyOrderingSupport()
boolean isPolicyDeActivationSupport()
Copyright © 2016 WSO2. All rights reserved.