public class X509TokenConsumer extends java.lang.Object implements TokenConsumerComponent
Subject
of the current thread for the later use.
It also creates a WSSAuthToken
for later use
in the WebSphere login process by WSSConsumerComponent
.Constructor and Description |
---|
X509TokenConsumer() |
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 the X509 binary security token in a SOAP message.
|
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.WSSComponent
init
in interface Initializable
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
.SoapSecurityException
- When there is a problem initializing the consumerInitializable.init(java.util.Map)
,
TokenConsumerConfig
public void invoke(org.w3c.dom.Node target, java.util.Map context) throws SoapSecurityException
target
parameter. The X509TokenLoginModule
will create
an X509Token
object and set in into the Subject
of the current thread.
It also creates a WSSAuthToken
if authentication is required with this token.invoke
in interface com.ibm.ws.webservices.wssecurity.WSSConsumerComponent
target
- 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
X509 binary security tokenWSSConsumerComponent.invoke(org.w3c.dom.Node, java.util.Map)