Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To apply a security policy, when viewing the service details in the management console, click Policies, and then apply policies at the service or binding level. The rest of this page describes how to define policies in more detail.

Defining Policies

...

at Service Level

The WSO2 Carbon has the ability to apply policies at the service hierarchy. You can apply policies at three different policy subjects in the service hierarchy. They are:

...

Out Message should be selected if you want the security policy to be applicable only for the outgoing messages of the ESB relating to the selected service.

Defining Policies

...

at Bindings

The WSO2 Carbon has the ability to apply policies at the binding hierarchy. You can apply policies at three different policy subjects in the binding hierarchy. They are:

...

Out Message should be selected if you want the security policy to be applicable only for the outgoing messages of the ESB relating to the selected binding.

Defining Policies at Bindings

The WSO2 Carbon has the ability to apply policies at the binding hierarchy. You can apply policies at three different policy subjects in the binding hierarchy. They are:

...

  • To apply a security policy at service level, click Edit Policy in the Service StockQuoteProxy row under Service Hierarchy.
  • To apply a security policy at the service operation level, select the required operation in the first Operation row under Service Hierarchy. Then click Edit Policy in the same row.
  • To apply a security policy at the service operation message level, select the required operation in the second Operation row under Service Hierarchy. Select In Message or Out Message depending on whether the policy should be applicable to incoming messages or outgoing messages. Then click Edit Policy in the same row.
  • To apply a security policy at binding level, click Edit Policy in the Binding echoSoap11Binding row or the Binding echoSoap12Binding row (depending on your requirement) underBinding Hierarchy.
  • To apply a security policy at binding operation level, select the required operation  in the first Operation row under Binding echoSoap11Binding or Binding echoSoap12Binding. Then click Edit Policy in the same row.
  • To apply a security policy at binding operation message level, select the required operation in the second Operation row under Binding echoSoap11Binding or Binding echoSoap12Binding. Select In Message or Out Message depending on whether the policy should be applicable to incoming messages or outgoing messages. Then click Edit Policy in the same row.

...

The WS-Policy Editor allows to edit WS-Policy documents using either a graphical editor or a plain text editor. Given a Service or a Module, it will generate a graphical tree view (the "Policy" tree) representing the document along with the plain text (Raw Policy) representation. The default view presented is the source view or the raw policy.

Image Removed

The WS-Policy Editor also contains "Design View," which provides a graphical representation of the WS-Policy in question.

Image Removed

Using the Policy Editor
  • Right-click on any node in the "Policy" tree - A shortcut menu appears. You can add new elements and delete existing ones. The plain text representation will be kept in sync with the changes done using the "Policy" tree, and vise versa.
  • Selecting an element in the "Policy" tree - Allows to edit the attributes of that policy element. Similarly, when adding an element, you will be prompted to add data to the attributes relevant to that particular element.
  • Save Policy - Once you have finished editing your policy document, click "Save Policy."
  • Go Back - Click "Go Back" to go back to the previous page.

...

hiddentrue

...

  • .