The function not in XACML asks for a boolean argument. However, I want to express a policy like "not string" such as "not male". I can't use "not gender == male" to instead that. I searched google and stackoverflow, but I failed to solve this problem. How could I do that?
XACML - How to express "not male" rather than "not gender == male"
116 Views Asked by Longxing Wei At
1
There are 1 best solutions below
Related Questions in XACML
- Is one XACML file per user a good approach?
- XACML: How to control the access to the properties in a resource
- Complex Authorization using XACML
- WSO2ESB Create a custom EntitlementCallbackHandler
- WSO2 4.5.0 XACML entitlement with role in secondary user store
- WSO2 is: What happens when more than one user store return an attribute with the same name?
- What is a standard way to call WSO2 ESB as PEP for XACML Authorization wtih IDP from webapplication?
- WSO2 Identity server GUI creating different attribute id for policy and request
- Does XACML distinguish between "attribute value is null" and "attribute is missing"
- Wso2 Identity server: improve the performance of an AttributeFinderModule for attributes on resources
- WSO2 Identity Server XACML Policies with XPathVersion being XPath 2.0
- How to use OpenAz ServiceFactory method?
- How do I unmarshall this XACML XML snippet using JAXB?
- SOAP Header Errors in JAVA Web Service
- How to parse OpenAM XACML using JVM?
Related Questions in ALFA
- Complex Authorization using XACML
- WSO2 Identity server GUI creating different attribute id for policy and request
- how to match XACML 3.0 request against policy stored in policy store
- In XACML and ALFA, how can I achieve a layered set of policies that check environment attributes?
- How to define 4 eyes principle in ALFA (/XACML)?
- Compare attributes inside a XACML policy
- How to define a administrative policy in ALFA for delegation?
- Is there a standard or preferred way to use obligations and advice in XACML and ALFA?
- How to use XACML and PIP in real application?
- Correct approach to use XACML at granular level
- In wso2 IS XACML policy how to validate role and its permissions
- Is there a way to define variables externally from XACML policy and refer them from inside the policy rules
- Axiomatics - condition editor
- Complex XACML, combination and dependencies of bags
- How can I write a "If..then" condition in Axiomatics
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When you send a XACML request, you always send a set of attributes with one or more values. You would either send:
Either way you still send an attribute. In one case the value is a string. In the other the value is a string. In the explanation below, I take the string approach. If you want the boolean approach, just replace gender=="male" with male.
Note that in XACML, attributes may possibly not have a value. This makes XACML booleans more than just boolean. Male could be true, false, or undefined. Keep that in mind when you write a policy / rule.
To express negative conditions e.g. not(gender==male), you have two options:
In the former case you can write the following (pseudo-code in ALFA):
In the latter case, you need to write a negative condition. To do that you need to use a XACML condition. Since XACML conditions only live inside rules, you need to go down to the XACML Rule level.