public class SOAPRequestHandler extends Object implements SOAPRequestHandlerInterface
SOAPRequestHandler
is to process and secure the
in-bound or out-bound SOAPMessage
s of the web service clients
and web service providers.
This class processes the SOAPMessage
s for the
web services security according to the processing rules defined in
OASIS web services security specification and as well as the Liberty
Identity Web services security framework.
Constructor and Description |
---|
SOAPRequestHandler() |
Modifier and Type | Method and Description |
---|---|
static MessageAuthenticator |
getAuthenticator()
Returns the configured message authenticator.
|
static MessageAuthorizer |
getAuthorizer()
Returns the configured message authenticator.
|
void |
init(Map config)
Initializes the handler with the given configuration.
|
String |
print(Node node)
Prints a Node tree recursively.
|
SOAPMessage |
secureRequest(SOAPMessage soapMessage,
Subject subject,
Map sharedState)
Secures the
SOAPMessage request by adding necessary
credential information. |
SOAPMessage |
secureResponse(SOAPMessage soapMessage,
Map sharedState)
Secures the SOAP Message response to the client.
|
Object |
validateRequest(SOAPMessage soapRequest,
Subject subject,
Map sharedState,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Authenticates the
SOAPMessage from a remote client. |
void |
validateResponse(SOAPMessage soapMessage,
Map sharedState)
Validates the SOAP Response from the service provider.
|
public void init(Map config) throws SecurityException
init
in interface SOAPRequestHandlerInterface
config
- the configuration map to initializate the provider.SecurityException
- if the initialization fails.public Object validateRequest(SOAPMessage soapRequest, Subject subject, Map sharedState, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws SecurityException
SOAPMessage
from a remote client.validateRequest
in interface SOAPRequestHandlerInterface
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 between validateRequest and
request
- the HttpServletRequest
associated with
this SOAP Message request.response
- the HttpServletResponse
associated with
this SOAP Message response.SecurityException
- if any error occured during validation.public SOAPMessage secureResponse(SOAPMessage soapMessage, Map sharedState) throws SecurityException
secureResponse
in interface SOAPRequestHandlerInterface
soapMessage
- SOAP Message that needs to be secured.sharedState
- a map for the callers to store any state information
between validateRequest
and
secureResponse
.SecurityException
- if any error occurs during securing.public SOAPMessage secureRequest(SOAPMessage soapMessage, Subject subject, Map sharedState) throws SecurityException
SOAPMessage
request by adding necessary
credential information.secureRequest
in interface SOAPRequestHandlerInterface
soapMessage
- the SOAPMessage
that needs to be secured.subject
- the Subject of the authenticating entity.
sharedState
- Any shared state information that may be used between
the secureRequest
and validateResponse
.SecurityException
- if any failure for securing the request.public void validateResponse(SOAPMessage soapMessage, Map sharedState) throws SecurityException
validateResponse
in interface SOAPRequestHandlerInterface
soapMessage
- the SOAPMessage
that needs to be
validated.sharedState
- Any shared data that may be used between the
secureRequest
and validateResponse
.SecurityException
- if any failure occured for validating the
response.public static MessageAuthenticator getAuthenticator() throws SecurityException
SecurityException
public static MessageAuthorizer getAuthorizer() throws SecurityException
SecurityException
public String print(Node node)
print
in interface SOAPRequestHandlerInterface
node
- A DOM tree NodeCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.