magoffin.matt.ma2.web.service
Class SimpleWsSecurityInterceptor

java.lang.Object
  extended by org.springframework.ws.soap.security.AbstractWsSecurityInterceptor
      extended by magoffin.matt.ma2.web.service.SimpleWsSecurityInterceptor
All Implemented Interfaces:
org.springframework.ws.server.EndpointInterceptor, org.springframework.ws.soap.server.SoapEndpointInterceptor

public class SimpleWsSecurityInterceptor
extends org.springframework.ws.soap.security.AbstractWsSecurityInterceptor

Bare-bones WS-Security interceptor implementation for authenticating basic usernames with the UserBiz.

Version:
$Revision: 89 $ $Date: 2007-12-04 17:59:26 +1300 (Tue, 04 Dec 2007) $
Author:
matt

Field Summary
static java.lang.String SOAP_NAMESPACE_URI
          The SOAP namespace URI.
static java.lang.String WSSE_NAMESPACE_URI
          The WSSE namespace URI.
static java.lang.String WSSE_SECURITY_ELEMENT_NAME
          The wsse:UsernameToken element name.
 
Fields inherited from class org.springframework.ws.soap.security.AbstractWsSecurityInterceptor
logger
 
Constructor Summary
SimpleWsSecurityInterceptor()
           
 
Method Summary
 UserBiz getUserBiz()
           
 XmlHelper getXmlHelper()
           
protected  void secureMessage(org.springframework.ws.soap.SoapMessage soapMessage)
           
 void setUserBiz(UserBiz userBiz)
           
 void setXmlHelper(XmlHelper xmlHelper)
           
protected  void validateMessage(org.springframework.ws.soap.SoapMessage soapMessage)
           
 
Methods inherited from class org.springframework.ws.soap.security.AbstractWsSecurityInterceptor
handleFault, handleFaultException, handleRequest, handleResponse, handleSecurementException, handleValidationException, setSecureResponse, setValidateRequest, understands
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WSSE_NAMESPACE_URI

public static final java.lang.String WSSE_NAMESPACE_URI
The WSSE namespace URI.

See Also:
Constant Field Values

SOAP_NAMESPACE_URI

public static final java.lang.String SOAP_NAMESPACE_URI
The SOAP namespace URI.

See Also:
Constant Field Values

WSSE_SECURITY_ELEMENT_NAME

public static final java.lang.String WSSE_SECURITY_ELEMENT_NAME
The wsse:UsernameToken element name.

See Also:
Constant Field Values
Constructor Detail

SimpleWsSecurityInterceptor

public SimpleWsSecurityInterceptor()
Method Detail

secureMessage

protected void secureMessage(org.springframework.ws.soap.SoapMessage soapMessage)
                      throws org.springframework.ws.soap.security.WsSecuritySecurementException
Specified by:
secureMessage in class org.springframework.ws.soap.security.AbstractWsSecurityInterceptor
Throws:
org.springframework.ws.soap.security.WsSecuritySecurementException

validateMessage

protected void validateMessage(org.springframework.ws.soap.SoapMessage soapMessage)
                        throws org.springframework.ws.soap.security.WsSecurityValidationException
Specified by:
validateMessage in class org.springframework.ws.soap.security.AbstractWsSecurityInterceptor
Throws:
org.springframework.ws.soap.security.WsSecurityValidationException

getUserBiz

public UserBiz getUserBiz()
Returns:
the userBiz

setUserBiz

public void setUserBiz(UserBiz userBiz)
Parameters:
userBiz - the userBiz to set

getXmlHelper

public XmlHelper getXmlHelper()
Returns:
the xmlHelper

setXmlHelper

public void setXmlHelper(XmlHelper xmlHelper)
Parameters:
xmlHelper - the xmlHelper to set