WS-Security Asymmetric Binding Policy

Learn about the WS-Security Asymmetric Binding Policy.

About Policies Managing Policies About Operational Policies

Supported Platforms: 7.2 and later

Table of Contents

  1. About the WS-Security Asymmetric Binding policy
  2. Creating a WS-Security Asymmetric Binding policy
  3. Use case: using a clusterable cache with the WS-Security Asymmetric Binding Policy

About the WS-Security Asymmetric Binding policy

The WS-Security Asymmetric Binding policy provides support for the Asymmetric Binding Assertion. Asymmetric binding is suited for when both parties (client and service) possess security tokens. For example, if both parties possess X.509 certificates, an asymmetric binding is used where the initiator or client uses its private key to sign and the recipient’s public key to encrypt. The Recipient or the Web service uses its private key to decrypt, and the initiator's public key to verify the signature.

Asymmetric binding allows defining tokens used by the initiator and the recipient using Initiator Token and Recipient Token properties. These are properties specific to asymmetric binding.

back to top

Creating a WS-Security Asymmetric Binding policy

The first step in creating a policy is to define the basic policy information. Then, you can configure the policy details.

To add an operational policy
  1. Go to Workbench > Browse > Organization, and select Policies > Operational Policies. The Policies Summary is displayed.
  2. Click Add Policy.
  3. Choose the policy type and click Next.
  4. Specify a name (required) and description (optional) and click Finish. The Add Policy Wizard creates a draft policy instance that you can then configure on the Policy Details page.

For more information, see Add Policy.

back to top

Use case: using a clusterable cache with the WS-Security Asymmetric Binding Policy

This section provides an illustration of how to use clusterable caching with the WS-Security Asymmetric Binding Policy.

  1. Launch the Policy Manager Management Console and create a physical service.
  2. Virtualize this physical service and host it on Cluster with at least two Network Director (ND) nodes.
  3. Perform the required steps for setting up a clusterable cache and using in the com.soa.policy.handle.wssp.noncecache and com.soa.grid property as illustrated in Using a Clusterable Cache.
  4. Assign Detailed Auditing, Consumer Authentication, Enduser Authentication, WS-Security Asymmetric Binding, WS-Security Supporting Tokens and WS-Security Message Policies to virtual service. For specific policy configurations, see below.

    Consumer Authentication Policy Configuration:

    End-user Authentication Policy Configuration:

    WS-Security Asymmetric Binding Policy Configuration:

    WS-Security Supporting Tokens Policy Configuration:

    WS-Security Message Policy Configuration:

  5. Assign PKI keys and certificate to the virtual service:

  6. Assign Detailed Auditing, Consumer Authentication, Enduser Authentication, WS-Security Asymmetric Binding, WS-Security Supporting Token and WS-Security Message Policies to the virtual service.

  7. Create a project in a client, such as SoapUI, using the virtual service WSDL URL.

  8. Double-click a project (for example, Echo).
  9. Navigate to Security Configurations > Keystores/Certificates.

  10. Click Adds a new crypto to this configuration.

  11. Assign a valid jks.

  12. Click Outgoing WS-Security Configurations.

  13. Click Adds a new Outgoing WSS Configuration.

  14. Enter unique name.

  15. Click OK.
  16. Click Adds a new WSS Entry.

  17. Select Time stamp and click OK.
  18. Enter time to live as 300 milliseconds.

  19. Click Adds a new WSS Entry.
  20. Select WSS Entry type as Username and click OK.

  21. Configure Username as shown below.

  22. Click on Adds a new WSS Entry.
  23. Select WSS type as Signature and click OK.

  24. Configure signature as shown below.

    • Name: Name space
    • Timestamp: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
    • Body: http://schemas.xmlsoap.org/soap/envelope/
  25. Click New WSS Entry.
  26. Select WSS type as Encryption and click OK.

  27. Configure Encryption as shown below.

  28. Save preferences.

  29. Select test in Outgoing WSS and send a request to the virtual service.

    The request is processed successfully. You can see the recorded message tab, as shown below.

  30. Verify that the wsse:Nonce header passed through the request. Similarly, view any continuous requests and make sure that the tokens are unique for various Network Director nodes.

Back to top