View Javadoc
1   /*
2    * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
3    * The software in this package is published under the terms of the CPAL v1.0
4    * license, a copy of which has been included with this distribution in the
5    * LICENSE.txt file.
6    */
7   package org.mule.api.security;
8   
9   import org.mule.api.MuleEvent;
10  import org.mule.api.lifecycle.Initialisable;
11  import org.mule.api.lifecycle.InitialisationException;
12  
13  /**
14   * <code>SecurityFilter</code> is a base filter for secure filtering of
15   * inbound and outbound event flow.
16   */
17  public interface SecurityFilter extends Initialisable
18  {
19      /**
20       * @param manager
21       */
22      void setSecurityManager(SecurityManager manager);
23  
24      SecurityManager getSecurityManager();
25  
26      String getSecurityProviders();
27  
28      void setSecurityProviders(String providers);
29      
30      void doFilter(MuleEvent event)
31              throws SecurityException, UnknownAuthenticationTypeException, CryptoFailureException,
32              SecurityProviderNotFoundException, EncryptionStrategyNotFoundException, InitialisationException;
33  }