org.wso2.balana.utils.policy.dto.RequestElementDTO Java Examples

The following examples show how to use org.wso2.balana.utils.policy.dto.RequestElementDTO. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: EntitlementPolicyCreator.java    From carbon-identity-framework with Apache License 2.0 5 votes vote down vote up
/**
 * Create basic XACML request
 *
 * @param requestDTO request element
 * @return String object of the XACML request
 * @throws EntitlementPolicyCreationException throws
 */
public String createBasicRequest(RequestDTO requestDTO)
        throws EntitlementPolicyCreationException, PolicyEditorException {
    try {

        RequestElementDTO requestElementDTO = PolicyCreatorUtil.createRequestElementDTO(requestDTO);
        return PolicyBuilder.getInstance().buildRequest(requestElementDTO);
    } catch (PolicyBuilderException e) {
        throw new PolicyEditorException("Error while building XACML Request");
    }

}
 
Example #2
Source File: EntitlementPolicyCreator.java    From carbon-identity with Apache License 2.0 5 votes vote down vote up
/**
 * Create basic XACML request
 *
 * @param requestDTO request element
 * @return String object of the XACML request
 * @throws EntitlementPolicyCreationException throws
 */
public String createBasicRequest(RequestDTO requestDTO)
        throws EntitlementPolicyCreationException, PolicyEditorException {
    try {

        RequestElementDTO requestElementDTO = PolicyCreatorUtil.createRequestElementDTO(requestDTO);
        return PolicyBuilder.getInstance().buildRequest(requestElementDTO);
    } catch (PolicyBuilderException e) {
        throw new PolicyEditorException("Error while building XACML Request");
    }

}