org.mule.extras.wssecurity.filters
Class WsSecurityFilter

java.lang.Object
  extended by org.mule.impl.security.AbstractEndpointSecurityFilter
      extended by org.mule.extras.wssecurity.filters.WsSecurityFilter
All Implemented Interfaces:
Initialisable, UMOEndpointSecurityFilter

public class WsSecurityFilter
extends AbstractEndpointSecurityFilter


Field Summary
 
Fields inherited from class org.mule.impl.security.AbstractEndpointSecurityFilter
logger
 
Constructor Summary
WsSecurityFilter()
           
 
Method Summary
protected  void authenticateInbound(UMOEvent event)
          This method's use is two-fold.
protected  void authenticateOutbound(UMOEvent event)
          This method secures the outgouing message by setting the required security handlers.
protected  void doInitialise()
           
 Map getAddInboundProperties()
           
 Map getAddOutboundProperties()
           
protected  Properties getProperties(UMOEvent event)
          This method gets the decryption and the signature property files and returns them as properties to the calling method.
 String getWsDecryptionFile()
           
 String getWsSignatureFile()
           
 void setAddInboundProperties(Map addInboundProperties)
           
 void setAddOutboundProperties(Map addOutboundProperties)
           
 void setWsDecryptionFile(String wsDecryptionFile)
           
 void setWsSignatureFile(String wsSignatureFile)
           
 
Methods inherited from class org.mule.impl.security.AbstractEndpointSecurityFilter
authenticate, getCredentialsAccessor, getEndpoint, getSecurityManager, getSecurityProviders, initialise, isAuthenticate, setAuthenticate, setCredentialsAccessor, setEndpoint, setSecurityManager, setSecurityProviders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WsSecurityFilter

public WsSecurityFilter()
Method Detail

getWsDecryptionFile

public String getWsDecryptionFile()

setWsDecryptionFile

public void setWsDecryptionFile(String wsDecryptionFile)

getWsSignatureFile

public String getWsSignatureFile()

setWsSignatureFile

public void setWsSignatureFile(String wsSignatureFile)

authenticateInbound

protected void authenticateInbound(UMOEvent event)
                            throws SecurityException,
                                   CryptoFailureException,
                                   SecurityProviderNotFoundException,
                                   EncryptionStrategyNotFoundException,
                                   UnknownAuthenticationTypeException
This method's use is two-fold. First it sets the required security handlers on the service. Secondly, it checks the properties in the message and if there are security properties among them, it sets them on the service.

Specified by:
authenticateInbound in class AbstractEndpointSecurityFilter
Throws:
SecurityException
CryptoFailureException
SecurityProviderNotFoundException
EncryptionStrategyNotFoundException
UnknownAuthenticationTypeException

authenticateOutbound

protected void authenticateOutbound(UMOEvent event)
                             throws SecurityException,
                                    SecurityProviderNotFoundException,
                                    CryptoFailureException
This method secures the outgouing message by setting the required security handlers.

Specified by:
authenticateOutbound in class AbstractEndpointSecurityFilter
Throws:
SecurityException
SecurityProviderNotFoundException
CryptoFailureException

doInitialise

protected void doInitialise()
                     throws InitialisationException
Specified by:
doInitialise in class AbstractEndpointSecurityFilter
Throws:
InitialisationException

getProperties

protected Properties getProperties(UMOEvent event)
This method gets the decryption and the signature property files and returns them as properties to the calling method.

Parameters:
event -
Returns:

getAddOutboundProperties

public Map getAddOutboundProperties()

setAddOutboundProperties

public void setAddOutboundProperties(Map addOutboundProperties)

getAddInboundProperties

public Map getAddInboundProperties()

setAddInboundProperties

public void setAddInboundProperties(Map addInboundProperties)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.