+

Search Tips   |   Advanced Search

Security model mixture

There can be multiple protocols and channels in the WAS v6 and later programming environments. Each of these applications serve different business needs.

For example, we might access:

More importantly, web services are often implemented as servlets with a EJB file. Therefore, we can mix and match the Web Services Security model with the Java EE security model for web and EJB components. It is intended that web service security complement the Java EE role-based security and the security run time for WAS v6 and later.

Web Services Security also can take advantage of the security features in Java EE and the security run time for WAS v6 and later. For example, Web Services Security can use the following security features to provide an end-to-end security deployment:

The following figure shows that different security protocols are used to send authentication information to the application server. For a web service, we might use either HTTP basic authentication with SSL or a Web Services Security username token with signing and encryption. In the following figure, when identity bob from Web Services Security is authenticated and set as the caller identity of the SOAP message request, the Java EE Enterprise JavaBeans container performs authorization using bob before the call is dispatched to the service implementation, which, in this case, is the enterprise bean.

We can secure a web service using the transport layer security. For example, when we are using SOAP over HTTP, HTTPS can be used to secure the web service. However, transport layer security provides point-to-point security only. This layer of security might be adequate for certain scenarios. However, when the SOAP message must travel through intermediary servers (multi-hop) before it is consumed by the target endpoint, we might use SOAP over the Java Message Service (JMS). The usage scenarios and security requirements dictate how to secure web services. The requirements depend upon the operating environment and the business needs. However, one key advantage of using Web Services Security is that it is transport layer independent; the same Web Services Security constraints can be used for SOAP over HTTP, SOAP over JMS, or SOAP over RMI/IIOP.


Related concepts

  • Security authorization models