public class MessageProcessor extends Object
MessageProcessor
is used to process the
SOAPMessage
for the JSR 196 providers. This API will
be used by both the client and server providers for securing
and validating the request/responses between the web services
applications.Constructor and Description |
---|
MessageProcessor(ProviderConfig config)
Constructor
|
Modifier and Type | Method and Description |
---|---|
SOAPMessage |
secureRequest(ResourceOffering offering,
List credentials,
String serviceType,
SOAPMessage soapMessage,
Map sharedData)
Secures the request by getting the credential from the discovery
service.
|
SOAPMessage |
secureResponse(SOAPMessage soapMessage,
Map sharedData)
Secures the SOAP Message response by adding necessary headers to the
given SOAP Message and also signs the message if it is required.
|
Object |
validateRequest(SOAPMessage soapMessage,
Subject subject,
Map sharedData,
javax.servlet.http.HttpServletRequest httpRequest)
This method is used to validate the SOAP Message Request by the
processing rules of Liberty SOAPBinding specifications.
|
SOAPMessage |
validateResponse(SOAPMessage soapMessage,
Map sharedData)
Validates the SOAP Response from the service and verifies the signature
if needed.
|
public MessageProcessor(ProviderConfig config)
config
- the provider configuration of WSC or WSP.public Object validateRequest(SOAPMessage soapMessage, Subject subject, Map sharedData, javax.servlet.http.HttpServletRequest httpRequest) throws SOAPBindingException
soapMessage
- SOAPMessage that needs to be validated.subject
- Subject that may be used to populate the authenticated
entity/user principal and any other credential information.sharedData
- that may be used to store any data needed between
the request and response.httpRequest
- HttpServletRequest associated with this SOAP
Message request.SOAPBindingException
- for any error occured during validation.public SOAPMessage secureResponse(SOAPMessage soapMessage, Map sharedData) throws SOAPBindingException
soapMessage
- SOAP Message that needs to be secured.sharedData
- Any shared data that may be needed between the request
and response.SOAPBindingException
- for any failure.public SOAPMessage secureRequest(ResourceOffering offering, List credentials, String serviceType, SOAPMessage soapMessage, Map sharedData) throws SOAPBindingException
offering
- Resource Offering of the discovery service.credentials
- List of credentials that are required to access
the discovery service.serviceType
- Service Type that the discovery service should
need to look for.soapMessage
- SOAPMessage that needs to be secured.sharedData
- Any shared data that may be used between the request
and the response.SOAPBindingException
- for any failure.public SOAPMessage validateResponse(SOAPMessage soapMessage, Map sharedData) throws SOAPBindingException
soapMessage
- SOAPMessage that needs to be validated.sharedData
- Any shared data that may be required between the
request and the response.SOAPBindingException
- for any failure.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.