com.ibm.wsspi.wssecurity.token
Class X509TokenConsumer
- java.lang.Object
-
- com.ibm.wsspi.wssecurity.token.X509TokenConsumer
-
- All Implemented Interfaces:
- com.ibm.ws.webservices.wssecurity.WSSComponent, com.ibm.ws.webservices.wssecurity.WSSConsumerComponent, Initializable, TokenConsumerComponent
public class X509TokenConsumer extends java.lang.Object implements TokenConsumerComponent
Consumes the X509 binary security token from the SOAP message and stores it into theSubjectof the current thread for the later use. It also creates aWSSAuthTokenfor later use in the WebSphere login process byWSSConsumerComponent.
-
-
Constructor Summary
Constructors Constructor and Description X509TokenConsumer()
-
Method Summary
Methods Modifier and Type Method and Description voidinit(java.util.Map map)Initializes this consumer with aTokenConsumerConfigobject which is passed in by themapparameter.voidinvoke(org.w3c.dom.Node target, java.util.Map context)Consumes the X509 binary security token in a SOAP message.
-
-
-
Method Detail
-
init
public void init(java.util.Map map) throws SoapSecurityExceptionInitializes this consumer with aTokenConsumerConfigobject which is passed in by themapparameter.- Specified by:
initin interfacecom.ibm.ws.webservices.wssecurity.WSSComponent- Specified by:
initin interfaceInitializable- Parameters:
map- AMapobject which contains name-value pairs. These pairs includes a configuration object and<Property>elements in the configuration XMI files. In the map, theTokenConsumerConfigobject is stored with a key ofTokenConsumerConfig.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 SoapSecurityExceptionConsumes the X509 binary security token in a SOAP message. Responsible for processing an X509 token specified by thetargetparameter. TheX509TokenLoginModulewill create anX509Tokenobject and set in into theSubjectof the current thread. It also creates aWSSAuthTokenif authentication is required with this token.- Specified by:
invokein interfacecom.ibm.ws.webservices.wssecurity.WSSConsumerComponent- Parameters:
target- The element to be consumed or theDocumentobjectcontext- AMapobject which contains necessary name-value pairs, such as aSubjectobject.- Throws:
SoapSecurityException- When there is a problem during consuming the X509 binary security token- See Also:
WSSConsumerComponent.invoke(org.w3c.dom.Node, java.util.Map)
-
-