Expeditor Toolkit,
Version 6.2
Operating systems: Linux on x86, Windows |
This section contains a complete example of a simple micro broker ACL file:
1. <?xml version="1.0" encoding="UTF-8"?> 2. <micro-acl policy-combination="permit-overrides" 3. xmlns='http://com.ibm.micro/micro-acl' 4. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 5. xsi:schemaLocation="http://com.ibm.micro/micro-acl micro-acl.xsd"> 6. <policy rule-combination="permit-overrides"> 7. <resource type="broker" /> 8. <rule effect="deny"/> 9. <rule effect="permit"> 10. <subject name="Alice" /> 11. <subject name="Bob" /> 12. </rule> 13. </policy> 14. <policy rule-combination="permit-overrides"> 15. <resource type="topic" /> 16. <rule effect="deny" /> 17. <rule effect="permit"> 18. <subject name="Bob" /> 19. <resource type="topic" name="stocks/US/IBM" /> 20. <resource type="topic" name="records/Bob" /> 21. <action value="subscribe" /> 22. </rule> 23. <rule effect="permit"> 24. <subject name="Alice" /> 25. <resource type="topic" name="stocks/US/IBM" /> 26. <resource type="topic" name="records/Alice/notify" /> 27. <action value="subscribe" /> 28. <action value="publish" /> 29. <environment network="10.1.0.0/16" /> 30. </rule> 31. </policy> 32. </micro-acl>
Line 2 defines the root element and the policy-combination algorithm for the ACL file, which is permit overrides.