Set Global Response & Enable Global Policies Apply

Document ID : KB000013657
Last Modified Date : 14/02/2018
Show Technical Document Details

Have written the Java program using the SDK and was able to create the Domain, Realm, Policy as expected. 

1. I need to know the method to "Set Global Response" while mapping the Realm-Rule-Response at Policy. 

2. I need to know on enabling "Global Policies Apply" at the Domain



1. Set global policies apply by calling setMode after creating the domain object but before adding it. So maybe between these two lines in your code: 


call setMode in here ---> 

return policyapi.addDomain(domain); 


2. To set the global response in the local policy get the global response in your code instead of getting a local response. If you need both responses then you need to create a response group and link the response group to the policy. 

Please see the sample that is included with the SDK.