WAS v8.5 > Reference > Developer detailed usage information

Web Services Security support

IBM supports Web Services Security, which is an extension of the IBM Web services engine, to provide a quality of service. The WebSphere Application Server security infrastructure fully integrates Web Services Security with the Java EE security specification.

There is an important distinction between v5.x and v6.0.x and later applications. The information in this article supports v5.x applications only used with WAS v6.0.x and later. The information does not apply to v6.0.x and later applications.

WAS, Versions 4.x, 5, and 5.0.1 support digital signature for Apache SOAP v2.x. Beginning with WAS, v5.0.2, IBM supports Web Services Security. The IBM implementation is based on the Web Services Security specification, WS-Security, originally proposed by IBM, Microsoft, and VeriSign in April 2002. Early versions of the proposed draft specification can be found in WS-Security v1.0 05 April 2002 and Web Services Security Addendum 18 August 2002. The WAS implementation is based on the Organization for the OASIS working Draft 13 specification. (See the OASIS Web Services Security TC website for the latest working specification.) However, not all the features in the OASIS working Draft 13 specification are implemented.

Web Services Security is not supported in a pure Java client or a nonmanaged client. When a user ID and password are embedded in a request message, authentication is performed with the user ID and password. If authentication is successful, a user identity is established and further resource access is authorized based on that identity. After the user ID and password are authenticated by the Web Services Security run time, a Java EE container performs authorization.

WAS provides an implementation of the key features of Web Services Security based on the following specifications:

The following table provides a summary of Web Services Security elements supported by WAS:

Supported Web Services Security elements. Use the table to determine which security elements are supported.

Element Notes
UsernameToken Both the user name and password for the BasicAuth authentication method and the user name for the identity assertion authentication method are supported. WAS supports nonce, a randomly generated value.
BinarySecurityToken X.509 certificates and Lightweight Third Party Authentication (LTPA) can be embedded, but there is no implementation to embed Kerberos tickets. However, the binary token generation and validation are pluggable and are based on the JAAS Application Programming Interfaces (APIs). We can extend this implementation to generate and validate other types of binary security tokens.
Signature The X.509 certificate is embedded as a binary security token and can be referenced by the SecurityTokenReference. WAS does not support shared, key-based signature.
Encryption Both the EncryptedKey and ReferenceList XML tags are supported. KeyIdentifier specifies public keys and KeyName identifies the secret keys. WAS has the capability to map an authenticated identity to a key for encryption or use the signer certificate to encrypt the response message.
Time stamp WAS supports the Created and Expires attributes. The freshness of the message, which indicates whether the message complies with predefined time constraints, is checked only if the Expires attribute is present in the message. WAS does not support the Received attribute, which is defined in the addendum. Instead, WAS uses the TimestampTraceReceived attribute, which is defined in the OASIS specification.
XML-based token We can insert and validate an arbitrary format of XML tokens into a message. This format mechanism is based on the JAAS APIs.

Signing and encrypting attachments is not supported by WAS. However, WAS signs and encrypts the following elements for the request message.

Elements that are signed and encrypted for the request message. The elements are used to perform authentication.

Method Element
XML digital signature

  • Body
  • Securitytoken
  • Timestamp

XML encryption

  • Bodycontent

  • Usernametoken

AuthMethod

  • BasicAuth
  • IDAssertion (from WAS to another WAS
  • Signature
  • LTPA on the server side
  • Other customer tokens

WAS signs and encrypts the following elements for the response message:

Elements that are signed and encrypted for the response message. The elements are used to perform authentication.

Method Element
XML digital signature

  • Body
  • Timestamp

XML encryption

  • Bodycontent

The namespaces used for sending a message were published by OASIS in draft 13 ( http://schemas.xmlsoap.org/ws/2003/06/secext). The Web services security run time in WAS cannot accept any of the following namespaces:

April 2002 specification

http://schemas.xmlsoap.org/ws/2002/04/secext

August 2002 addendum

http://schemas.xmlsoap.org/ws/2002/07/secext

http://schemas.xmlsoap.org/ws/2002/07/utility

OASIS draft published on draft 13 May 2003

http://schemas.xmlsoap.org/ws/2003/06/secext

http://schemas.xmlsoap.org/ws/2003/06/utility

WAS provides the following capabilities for Web Services Security:

Refer to the Web Services Security elements table for a description of capabilities that are not supported.


Related concepts:

Secure web services
Web Services Security specification—a chronology
Web Services Security and Java Platform, Enterprise Edition security relationship
Web Services Security model in WAS


Related information:

OASIS Web Services Security TC
Specification: WS-Security
Web Services Security Addendum
Specification: WS-Security v1.0 05 April 2002

Web Services Security: SOAP Message Security Working 13 May 2003

Web Services Security: Username Token Profile Draft
WS-Security April 2002
WS-Security August 2002 Addendum Example 1
WS-Security August 2002 Addendum Example 2
WS-Security OASIS Draft 13 Example 1
WS-Security OASIS Draft 13 Example 2


+

Search Tips   |   Advanced Search