Modifier and Type | Method and Description |
---|---|
static boolean |
EntitlementUtil.addFilesystemPolicy(PolicyDTO policyDTO,
org.wso2.carbon.registry.core.Registry registry,
boolean promote)
This method persists a new XACML policy, which was read from filesystem,
in the registry
|
void |
EntitlementPolicyAdminService.addPolicies(PolicyDTO[] policies)
Adds XACML policies in bulk to the system.
|
void |
EntitlementPolicyAdminService.addPolicy(PolicyDTO policyDTO)
Add a new XACML policy in to the system.
|
static void |
EntitlementUtil.addPolicyToPDP(PolicyStoreDTO policyStoreDTO) |
void |
EntitlementPolicyAdminService.addSubscriber(PublisherDataHolder holder)
Add subscriber details in to registry
|
void |
EntitlementAdminService.clearAllAttributeCaches()
Clears Carbon attribute finder cache and All the attribute cache implementations in each
PIP attribute finder level
|
void |
EntitlementAdminService.clearAllResourceCaches()
Clears Carbon resource finder cache and All the resource cache implementations in each
PIP resource finder level
|
void |
EntitlementAdminService.clearCarbonAttributeCache()
Clears the carbon attribute cache
|
void |
EntitlementAdminService.clearCarbonResourceCache()
Clears the carbon resource cache
|
void |
EntitlementAdminService.clearDecisionCache()
Clears the decision cache.
|
void |
EntitlementAdminService.clearPolicyCache()
Clears the policy cache.
|
void |
EntitlementPolicyAdminService.deleteSubscriber(String subscriberId)
delete subscriber details from registry
|
void |
EntitlementPolicyAdminService.dePromotePolicy(String policyId) |
String |
EntitlementAdminService.doTestRequest(String xacmlRequest)
Tests engine of PAP policy store
|
String |
EntitlementAdminService.doTestRequestForGivenPolicies(String xacmlRequest,
String[] policies)
Tests engine of PAP policy store
|
void |
EntitlementPolicyAdminService.enableDisablePolicy(String policyId,
boolean enable) |
EntitledResultSetDTO |
EntitlementService.getAllEntitlements(String identifier,
AttributeDTO[] givenAttributes)
Gets all entitled attributes for given set of attributes
this an universal method to do policy search and find entitlement attributes
|
PaginatedPolicySetDTO |
EntitlementPolicyAdminService.getAllPolicies(String policyTypeFilter,
String policySearchString,
int pageNumber,
boolean isPDPPolicy)
This method paginates policies
|
String[] |
EntitlementPolicyAdminService.getAllPolicyIds(String searchString)
This method returns the list of policy id available in PDP
|
static org.wso2.balana.attr.AttributeValue |
EntitlementUtil.getAttributeValue(String value,
String type)
Return the Attribute Value Object for given string value and data type
|
String |
EntitlementService.getDecision(String request)
Evaluates the given XACML request and returns the Response that the EntitlementEngine will
hand back to the PEP.
|
String |
EntitlementService.getDecisionByAttributes(String subject,
String resource,
String action,
String[] environment)
Evaluates the given XACML request and returns the Response that the EntitlementEngine will
hand back to the PEP.
|
EntitledResultSetDTO |
EntitlementService.getEntitledAttributes(String subjectName,
String resourceName,
String subjectId,
String action,
boolean enableChildSearch)
Gets entitled resources for given user or role
This method can be only used, if all policies in PDP are defined with default categories i.e
subject, resource and action and default attribute Ids and #string data type.
|
String |
EntitlementAdminService.getGlobalPolicyAlgorithm()
Gets globally defined policy combining algorithm
|
PolicyDTO |
EntitlementPolicyAdminService.getLightPolicy(String policyId)
Gets light weight policy DTO for given policy id
|
PolicyDTO |
EntitlementPolicyAdminService.getPolicy(String policyId,
boolean isPDPPolicy)
Gets policy for given policy id
|
static PolicyDTO |
EntitlementUtil.getPolicy(String policyId,
org.wso2.carbon.registry.core.Registry registry)
Gets policy dto for a given policy id
|
PolicyDTO |
EntitlementPolicyAdminService.getPolicyByVersion(String policyId,
String version)
Gets policy for given policy id and version
|
static org.wso2.balana.combine.PolicyCombiningAlgorithm |
EntitlementUtil.getPolicyCombiningAlgorithm(String uri)
Creates PolicyCombiningAlgorithm object based on policy combining url
|
String[] |
EntitlementPolicyAdminService.getPolicyVersions(String policyId) |
StatusHolder[] |
PAPStatusDataHandler.getStatusData(String about,
String key,
String type,
String searchString) |
StatusHolder[] |
SimplePAPStatusDataHandler.getStatusData(String about,
String key,
String type,
String searchString) |
StatusHolder[] |
EntitlementNotificationExtension.getStatusData(String about,
String key,
String type,
String searchString) |
PaginatedStatusHolder |
EntitlementPolicyAdminService.getStatusData(String about,
String key,
String type,
String searchString,
int pageNumber) |
PublisherDataHolder |
EntitlementPolicyAdminService.getSubscriber(String subscribeId)
Gets subscriber details
|
String[] |
EntitlementPolicyAdminService.getSubscriberIds(String searchString)
Gets all subscribers ids that is registered,
|
void |
PAPStatusDataHandler.handle(String about,
StatusHolder statusHolder) |
void |
SimplePAPStatusDataHandler.handle(String about,
StatusHolder statusHolder) |
void |
EntitlementNotificationExtension.handle(String about,
StatusHolder statusHolder)
handler will decide the process depending on the status in status holder
|
void |
PAPStatusDataHandler.handle(String about,
String key,
List<StatusHolder> statusHolder)
Handles
|
void |
SimplePAPStatusDataHandler.handle(String about,
String key,
List<StatusHolder> statusHolder) |
void |
EntitlementNotificationExtension.handle(String about,
String key,
List<StatusHolder> statusHolder) |
void |
EntitlementPolicyAdminService.importPolicyFromRegistry(String policyRegistryPath)
This method finds the policy file from given registry path and adds the policy
|
static boolean |
EntitlementUtil.isPolicyExists(String policyId,
org.wso2.carbon.registry.core.Registry registry)
This method checks whether there is a policy having the same policyId as the given policyId is in the registry
|
void |
EntitlementPolicyAdminService.orderPolicy(String policyId,
int newOrder) |
void |
EntitlementPolicyAdminService.publish(String verificationCode)
Publishes given set of policies to all subscribers
|
void |
EntitlementPolicyAdminService.publishPolicies(String[] policyIds,
String[] subscriberIds,
String action,
String version,
boolean enabled,
int order)
Publishes given set of policies to all subscribers
|
void |
EntitlementPolicyAdminService.publishToPDP(String[] policyIds,
String action,
String version,
boolean enabled,
int order) |
void |
EntitlementAdminService.refreshAttributeFinder(String attributeFinder)
Refreshes the supported Attribute ids of a given attribute finder module
|
void |
EntitlementAdminService.refreshPolicyFinders(String policyFinder)
Refreshes the supported resource id of a given resource finder module
|
void |
EntitlementAdminService.refreshResourceFinder(String resourceFinder)
Refreshes the supported resource id of a given resource finder module
|
void |
EntitlementPolicyAdminService.removePolicies(String[] policyIds,
boolean dePromote)
Removes policy for given policy object
|
void |
EntitlementPolicyAdminService.removePolicy(String policyId,
boolean dePromote)
Removes policy for given policy object
|
void |
EntitlementPolicyAdminService.rollBackPolicy(String policyId,
String version) |
void |
EntitlementAdminService.setGlobalPolicyAlgorithm(String policyCombiningAlgorithm)
Sets policy combining algorithm globally
|
void |
EntitlementPolicyAdminService.updatePolicy(PolicyDTO policyDTO)
Updates given policy
|
void |
EntitlementPolicyAdminService.updateSubscriber(PublisherDataHolder holder)
Update subscriber details in registry
|
Modifier and Type | Method and Description |
---|---|
void |
PAPPolicyStoreManager.addOrUpdatePolicy(PolicyDTO policy) |
void |
PAPPolicyStore.addOrUpdatePolicy(PolicyDTO policy,
String policyPath) |
void |
PAPPolicyStore.addOrUpdatePolicy(PolicyDTO policy,
String policyId,
String policyPath) |
PolicyDTO[] |
PAPPolicyStoreManager.getAllLightPolicyDTOs() |
String[] |
PAPPolicyStore.getAllPolicyIds()
This returns all the policy ids as String list.
|
PolicyDTO |
PAPPolicyStoreManager.getLightPolicy(String policyId) |
PolicyDTO |
PAPPolicyStoreManager.getMetaDataPolicy(String policyId) |
PolicyDTO |
PAPPolicyStoreManager.getPolicy(org.wso2.carbon.registry.core.Resource resource) |
PolicyDTO |
PAPPolicyStoreManager.getPolicy(String policyId) |
org.wso2.carbon.registry.core.Resource |
PAPPolicyStore.getPolicy(String policyId,
String collection)
This returns given policy as Registry resource
|
String[] |
PAPPolicyStoreManager.getPolicyIds() |
void |
PAPPolicyFinder.initPolicyIds() |
PolicyDTO[] |
PAPPolicyStoreReader.readAllLightPolicyDTOs()
Reads All policies as Light Weight PolicyDTO
|
PolicyDTO |
PAPPolicyStoreReader.readLightPolicyDTO(String policyId)
Reads Light Weight PolicyDTO for given policy id
|
PolicyDTO |
PAPPolicyStoreReader.readMetaDataPolicyDTO(String policyId)
Reads Light Weight PolicyDTO with Attribute meta data for given policy id
|
org.wso2.balana.AbstractPolicy |
PAPPolicyStoreReader.readPolicy(String policyId,
org.wso2.balana.finder.PolicyFinder finder) |
PolicyDTO |
PAPPolicyStoreReader.readPolicyDTO(org.wso2.carbon.registry.core.Resource resource)
Reads PolicyDTO for given registry resource
|
PolicyDTO |
PAPPolicyStoreReader.readPolicyDTO(String policyId)
Reads PolicyDTO for given policy id
|
void |
PAPPolicyStoreManager.removePolicy(String policyId) |
void |
PAPPolicyStore.removePolicy(String policyId) |
Constructor and Description |
---|
PAPPolicyStore(org.wso2.carbon.registry.core.Registry registry) |
Modifier and Type | Method and Description |
---|---|
String |
EntitlementEngine.evaluate(String xacmlRequest)
Evaluates the given XACML request and returns the Response that the EntitlementEngine will
hand back to the PEP.
|
Modifier and Type | Method and Description |
---|---|
List<AttributeDTO> |
PolicyAttributeBuilder.createPolicyMetaData(String policy,
List<AttributeDTO> attributeDTOs)
This creates the OMElement from the policy xml and create the the meta data for hole policy
|
Properties |
PolicyAttributeBuilder.getPolicyMetaDataFromPolicy()
This creates properties object which contains the policy meta data.
|
Element |
PolicyRequestBuilder.getXacmlRequest(String request)
creates DOM representation of the XACML request
|
Modifier and Type | Method and Description |
---|---|
org.wso2.balana.AbstractPolicy |
DefaultPolicyCollection.getEffectivePolicy(ArrayList<org.wso2.balana.AbstractPolicy> policies)
Get Policy or Policy Set for given applicable policies
|
org.wso2.balana.AbstractPolicy |
DefaultPolicyCollection.getEffectivePolicy(org.wso2.balana.ctx.EvaluationCtx context)
Attempts to retrieve a policy based on the given context.
|
org.wso2.balana.AbstractPolicy |
SimplePolicyCollection.getEffectivePolicy(org.wso2.balana.ctx.EvaluationCtx context) |
org.wso2.balana.AbstractPolicy |
PolicyCollection.getEffectivePolicy(org.wso2.balana.ctx.EvaluationCtx context)
returns the effective policy for given XACML request
|
Modifier and Type | Method and Description |
---|---|
String[] |
RegistryPolicyReader.getAllPolicyIds()
This returns all the policy ids as String list.
|
PolicyDTO[] |
RegistryPolicyReader.readAllPolicies(boolean active,
boolean order)
Reads All ordered active policies as PolicyDTO
|
PolicyDTO |
RegistryPolicyReader.readPolicy(String policyId)
Reads given policy resource as PolicyDTO
|
String |
RegistryPolicyReader.readPolicyCombiningAlgorithm()
This reads the policy combining algorithm from registry resource property
|
Modifier and Type | Method and Description |
---|---|
abstract void |
AbstractPolicyPublisherModule.delete(PolicyDTO policyDTO)
Deletes a published policy
|
void |
CarbonBasicPolicyPublisherModule.delete(PolicyDTO policyDTO) |
void |
PolicyPublisher.deleteSubscriber(String subscriberId) |
abstract void |
AbstractPolicyPublisherModule.disable(PolicyDTO policyDTO)
Disables policy in PDP
|
void |
CarbonBasicPolicyPublisherModule.disable(PolicyDTO policyDTO) |
abstract void |
AbstractPolicyPublisherModule.enable(PolicyDTO policyDTO)
Enables policy in PDP
|
void |
CarbonBasicPolicyPublisherModule.enable(PolicyDTO policyDTO) |
abstract String |
PublisherVerificationModule.getVerificationCode(PublisherDataHolder holder)
Generates the verification code based on publisher
|
abstract void |
AbstractPolicyPublisherModule.init(PublisherDataHolder propertyHolder)
This would init module, each time policy is published
|
void |
CarbonBasicPolicyPublisherModule.init(PublisherDataHolder propertyHolder) |
abstract void |
AbstractPolicyPublisherModule.order(PolicyDTO policyDTO)
Order policy
|
void |
CarbonBasicPolicyPublisherModule.order(PolicyDTO policyDTO) |
void |
PolicyPublisher.persistSubscriber(PublisherDataHolder holder,
boolean update) |
boolean |
PostPublisherModule.postPublish(PublisherDataHolder holder,
List<StatusHolder> statusHolders) |
void |
AbstractPolicyPublisherModule.publish(PolicyDTO policyDTO,
String action,
boolean enabled,
int order) |
void |
CarbonPDPPublisher.publish(PolicyDTO policyDTO,
String action,
boolean enabled,
int order) |
void |
PolicyPublisherModule.publish(PolicyDTO policyDTO,
String action,
boolean enable,
int order)
publishes policy to given subscriber
|
abstract void |
AbstractPolicyPublisherModule.publishNew(PolicyDTO policyDTO)
Publish a new policy
|
void |
CarbonBasicPolicyPublisherModule.publishNew(PolicyDTO policyDTO) |
void |
PolicyPublisher.publishPolicy(String[] policyIds,
String version,
String action,
boolean enabled,
int order,
String[] subscriberIds,
String verificationCode)
publish policy
|
PublisherDataHolder |
PolicyPublisher.retrieveSubscriber(String id,
boolean returnSecrets) |
String[] |
PolicyPublisher.retrieveSubscriberIds(String searchString) |
abstract void |
AbstractPolicyPublisherModule.update(PolicyDTO policyDTO)
Update a already published policy
|
void |
CarbonBasicPolicyPublisherModule.update(PolicyDTO policyDTO) |
Modifier and Type | Method and Description |
---|---|
EntitledResultSetDTO |
PolicySearch.getEntitledAttributes(String subjectName,
String resourceName,
String subjectId,
String action,
boolean enableChildSearch)
This returns resource name as the list of the entitled attributes for given
user or role and action, after evaluating the all the active policies in the PDP
|
Modifier and Type | Method and Description |
---|---|
void |
PolicyStoreManager.addPolicy(PolicyDTO policyDTO) |
void |
PolicyStoreManageModule.addPolicy(PolicyStoreDTO policy)
add policy in to the store
|
void |
RegistryPolicyStoreManageModule.addPolicy(PolicyStoreDTO policy) |
boolean |
PolicyStoreManageModule.deletePolicy(String policyIdentifier)
delete policy from the store
|
void |
PolicyStoreManager.enableDisablePolicy(PolicyDTO policyDTO) |
void |
DefaultPolicyDataStore.init(Properties properties) |
void |
PolicyDataStore.init(Properties properties)
initializes the PolicyDataStore
|
void |
PolicyStoreManager.orderPolicy(PolicyDTO policyDTO) |
void |
PolicyStoreManager.removePolicy(PolicyDTO policyDTO) |
void |
DefaultPolicyDataStore.removePolicyData(String policyId) |
void |
PolicyDataStore.removePolicyData(String policyId)
Remove policy data for give policy id
|
void |
DefaultPolicyDataStore.setGlobalPolicyAlgorithm(String policyCombiningAlgorithm) |
void |
PolicyDataStore.setGlobalPolicyAlgorithm(String policyCombiningAlgorithm)
Persist the policy combining algorithm in to data store
|
void |
DefaultPolicyDataStore.setPolicyData(String policyId,
PolicyStoreDTO policyDataDTO) |
void |
PolicyDataStore.setPolicyData(String policyId,
PolicyStoreDTO policyDataDTO)
Set policy data for give policy id
|
void |
PolicyStoreManager.updatePolicy(PolicyDTO policyDTO) |
void |
PolicyStoreManageModule.updatePolicy(PolicyStoreDTO policy)
update policy in to the store
|
void |
RegistryPolicyStoreManageModule.updatePolicy(PolicyStoreDTO policy) |
Modifier and Type | Method and Description |
---|---|
String |
PolicyVersionManager.createVersion(PolicyDTO policyDTO) |
String |
DefaultPolicyVersionManager.createVersion(PolicyDTO policyDTO) |
void |
PolicyVersionManager.deletePolicy(String policyId) |
void |
DefaultPolicyVersionManager.deletePolicy(String policyId) |
PolicyDTO |
PolicyVersionManager.getPolicy(String policyId,
String version) |
PolicyDTO |
DefaultPolicyVersionManager.getPolicy(String policyId,
String version) |
String[] |
PolicyVersionManager.getVersions(String policyId) |
String[] |
DefaultPolicyVersionManager.getVersions(String policyId) |
Modifier and Type | Method and Description |
---|---|
org.opensaml.xml.XMLObject |
WSXACMLMessageReceiver.unmarshall(String xmlString)
Constructing the SAML or XACML Objects from a String
|
Copyright © 2016 WSO2. All rights reserved.