public class IDAssertionUsernameTokenConsumer extends java.lang.Object implements TokenConsumerComponent
| Constructor and Description |
|---|
IDAssertionUsernameTokenConsumer() |
| Modifier and Type | Method and Description |
|---|---|
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. |
public void init(java.util.Map map)
throws SoapSecurityException
TokenConsumerConfig object which is passed
in by the map parameter.init in interface com.ibm.ws.webservices.wssecurity.WSSComponentinit in interface Initializablemap - 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.SoapSecurityException - When there is a problem initializing the consumerInitializable.init(java.util.Map),
TokenConsumerConfigpublic void invoke(org.w3c.dom.Node target,
java.util.Map context)
throws SoapSecurityException
<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.invoke in interface com.ibm.ws.webservices.wssecurity.WSSConsumerComponenttarget - The element to be consumed or the
Document objectcontext - A Map object which contains
necessary name-value pairs, such as a Subject object.SoapSecurityException - When there is a problem during consuming the username tokenWSSConsumerComponent.invoke(org.w3c.dom.Node, java.util.Map)