|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.identity.wss.security.handler.SOAPRequestHandler
This class SOAPRequestHandler is to process and secure the
in-bound or out-bound SOAPMessages of the web service clients
and web service providers.
This class processes the SOAPMessages 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 Summary | |
SOAPRequestHandler()
|
|
| Method Summary | |
static MessageAuthenticator |
getAuthenticator()
Returns the configured message authenticator. |
void |
init(java.util.Map config)
Initializes the handler with the given configuration. |
javax.xml.soap.SOAPMessage |
secureRequest(javax.xml.soap.SOAPMessage soapMessage,
javax.security.auth.Subject subject,
java.util.Map sharedState)
Secures the SOAPMessage request by adding necessary
credential information. |
javax.xml.soap.SOAPMessage |
secureResponse(javax.xml.soap.SOAPMessage soapMessage,
java.util.Map sharedState)
Secures the SOAP Message response to the client. |
java.lang.Object |
validateRequest(javax.xml.soap.SOAPMessage soapRequest,
javax.security.auth.Subject subject,
java.util.Map sharedState,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Authenticates the SOAPMessage from a remote client. |
void |
validateResponse(javax.xml.soap.SOAPMessage soapMessage,
java.util.Map sharedState)
Validates the SOAP Response from the service provider. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SOAPRequestHandler()
| Method Detail |
public void init(java.util.Map config)
throws com.sun.identity.wss.security.SecurityException
config - the configuration map to initializate the provider.
com.sun.identity.wss.security.SecurityException - if the initialization fails.
public java.lang.Object validateRequest(javax.xml.soap.SOAPMessage soapRequest,
javax.security.auth.Subject subject,
java.util.Map sharedState,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws com.sun.identity.wss.security.SecurityException
SOAPMessage from a remote client.
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.
- Returns:
- Object the authenticated token.
- Throws:
com.sun.identity.wss.security.SecurityException - if any error occured during validation.
public javax.xml.soap.SOAPMessage secureResponse(javax.xml.soap.SOAPMessage soapMessage,
java.util.Map sharedState)
throws com.sun.identity.wss.security.SecurityException
soapMessage - SOAP Message that needs to be secured.sharedState - a map for the callers to store any state information
between validateRequest and
secureResponse.
com.sun.identity.wss.security.SecurityException - if any error occurs during securing.
public javax.xml.soap.SOAPMessage secureRequest(javax.xml.soap.SOAPMessage soapMessage,
javax.security.auth.Subject subject,
java.util.Map sharedState)
throws com.sun.identity.wss.security.SecurityException
SOAPMessage request by adding necessary
credential information.
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.
- Throws:
com.sun.identity.wss.security.SecurityException - if any failure for securing the request.
public void validateResponse(javax.xml.soap.SOAPMessage soapMessage,
java.util.Map sharedState)
throws com.sun.identity.wss.security.SecurityException
soapMessage - the SOAPMessage that needs to be
validated.sharedState - Any shared data that may be used between the
secureRequest and validateResponse.
com.sun.identity.wss.security.SecurityException - if any failure occured for validating the
response.
public static MessageAuthenticator getAuthenticator()
throws com.sun.identity.wss.security.SecurityException
com.sun.identity.wss.security.SecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||