Interface SOAPRequestHandlerInterface
-
- All Known Implementing Classes:
SOAPRequestHandler
public interface SOAPRequestHandlerInterfaceSOAPRequestHandlerInterfaceprovides the interfaces to process and secure the in-bound or out-boundSOAPMessages of the web service clients and web service providers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinit(Map config)Initializes the handler with the given configuration.Stringprint(Node node)Prints a Node tree recursively.jakarta.xml.soap.SOAPMessagesecureRequest(jakarta.xml.soap.SOAPMessage soapMessage, Subject subject, Map sharedState)Secures theSOAPMessagerequest by adding necessary credential information.jakarta.xml.soap.SOAPMessagesecureResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState)Secures the SOAP Message response to the client.ObjectvalidateRequest(jakarta.xml.soap.SOAPMessage soapRequest, Subject subject, Map sharedState, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Authenticates theSOAPMessagefrom a remote client.voidvalidateResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState)Validates the SOAP Response from the service provider.
-
-
-
Method Detail
-
init
void init(Map config) throws SecurityException
Initializes the handler with the given configuration.- Parameters:
config- the configuration map to initializate the provider.- Throws:
SecurityException- if the initialization fails.
-
validateRequest
Object validateRequest(jakarta.xml.soap.SOAPMessage soapRequest, Subject subject, Map sharedState, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws SecurityException
Authenticates theSOAPMessagefrom a remote client.- Parameters:
soapRequest- SOAPMessage that needs to be validated.subject- the subject that may be used by the callers to store Principals and credentials validated in the request.sharedState- that may be used to store any shared state information betweenvalidateRequest andrequest- theHttpServletRequestassociated with this SOAP Message request.response- theHttpServletResponseassociated with this SOAP Message response.- Returns:
- Object the authenticated token.
- Throws:
SecurityException- if any error occured during validation.
-
secureResponse
jakarta.xml.soap.SOAPMessage secureResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState) throws SecurityExceptionSecures the SOAP Message response to the client.- Parameters:
soapMessage- SOAP Message that needs to be secured.sharedState- a map for the callers to store any state information betweenvalidateRequestandsecureResponse.- Throws:
SecurityException- if any error occurs during securing.
-
secureRequest
jakarta.xml.soap.SOAPMessage secureRequest(jakarta.xml.soap.SOAPMessage soapMessage, Subject subject, Map sharedState) throws SecurityExceptionSecures theSOAPMessagerequest by adding necessary credential information.- Parameters:
soapMessage- theSOAPMessagethat needs to be secured.subject- theSubjectof the authenticating entity.sharedState- Any shared state information that may be used between thesecureRequestandvalidateResponse.- Throws:
SecurityException- if any failure for securing the request.
-
validateResponse
void validateResponse(jakarta.xml.soap.SOAPMessage soapMessage, Map sharedState) throws SecurityExceptionValidates the SOAP Response from the service provider.- Parameters:
soapMessage- theSOAPMessagethat needs to be validated.sharedState- Any shared data that may be used between thesecureRequestandvalidateResponse.- Throws:
SecurityException- if any failure occured for validating the response.
-
-