IBM WebSphere Application ServerTM
Release 7

com.ibm.wsspi.wssecurity.token
Class IDAssertionUsernameTokenConsumer

java.lang.Object
  extended by com.ibm.wsspi.wssecurity.token.IDAssertionUsernameTokenConsumer
All Implemented Interfaces:
com.ibm.ws.webservices.wssecurity.WSSComponent, com.ibm.ws.webservices.wssecurity.WSSConsumerComponent, Initializable, TokenConsumerComponent

public class IDAssertionUsernameTokenConsumer
extends java.lang.Object
implements TokenConsumerComponent

Consumes the identity assertion username token from the SOAP message and store it into the Subject for the later use.


Constructor Summary
IDAssertionUsernameTokenConsumer()
           
 
Method Summary
 void init(java.util.Map map)
          Initializes this consumer with a TokenConsumerConfig object which is passed in by the map parameter.
 void invoke(org.w3c.dom.Node target, java.util.Map context)
          Consumes a username token in a SOAP message, especially for identity assertion (IDAssertion), that has no <Password> element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IDAssertionUsernameTokenConsumer

public IDAssertionUsernameTokenConsumer()
Method Detail

init

public void init(java.util.Map map)
          throws SoapSecurityException
Initializes this consumer with a TokenConsumerConfig object which is passed in by the map parameter.

Specified by:
init in interface com.ibm.ws.webservices.wssecurity.WSSComponent
Specified by:
init in interface Initializable
Parameters:
map - A Map object which contains name-value pairs. These pairs includes a configuration object and <Property> elements in the configuration XMI files. In the map, the TokenConsumerConfig object is stored with a key of TokenConsumerConfig.CONFIG_KEY.
Throws:
SoapSecurityException - When there is a problem initializing the consumer
See Also:
Initializable.init(java.util.Map), TokenConsumerConfig

invoke

public void invoke(org.w3c.dom.Node target,
                   java.util.Map context)
            throws SoapSecurityException
Consumes a username token in a SOAP message, especially for identity assertion (IDAssertion), that has no <Password> element. If a <Password> element exists, it is ignored. We assume that the login module called in this token consumer is com.ibm.wsspi.wssecurity.auth.module.IDAssertionUsernameLoginModule, or some similar one which only asks if the username exists in the user registry.

Specified by:
invoke in interface com.ibm.ws.webservices.wssecurity.WSSConsumerComponent
Parameters:
target - The element to be consumed or the Document object
context - A Map object which contains necessary name-value pairs, such as a Subject object.
Throws:
SoapSecurityException - When there is a problem during consuming the username token
See Also:
WSSConsumerComponent.invoke(org.w3c.dom.Node, java.util.Map)

IBM WebSphere Application ServerTM
Release 7