View Javadoc

1   /*
2    * $Id: UMOEndpointSecurityFilter.java 7963 2007-08-21 08:53:15Z dirk.olmes $
3    * --------------------------------------------------------------------------------------
4    * Copyright (c) MuleSource, Inc.  All rights reserved.  http://www.mulesource.com
5    *
6    * The software in this package is published under the terms of the CPAL v1.0
7    * license, a copy of which has been included with this distribution in the
8    * LICENSE.txt file.
9    */
10  
11  package org.mule.umo.security;
12  
13  import org.mule.umo.UMOEvent;
14  import org.mule.umo.endpoint.UMOImmutableEndpoint;
15  import org.mule.umo.lifecycle.Initialisable;
16  
17  /**
18   * <code>UMOEndpointSecurityFilter</code> is a base filter for secure filtering of
19   * inbound and outbout event flow
20   */
21  public interface UMOEndpointSecurityFilter extends Initialisable
22  {
23      /**
24       * @param manager
25       */
26      void setSecurityManager(UMOSecurityManager manager);
27  
28      UMOSecurityManager getSecurityManager();
29  
30      String getSecurityProviders();
31  
32      void setSecurityProviders(String providers);
33  
34      void setEndpoint(UMOImmutableEndpoint endpoint);
35  
36      UMOImmutableEndpoint getEndpoint();
37  
38      void setCredentialsAccessor(UMOCredentialsAccessor accessor);
39  
40      UMOCredentialsAccessor getCredentialsAccessor();
41  
42      void authenticate(UMOEvent event)
43          throws SecurityException, UnknownAuthenticationTypeException, CryptoFailureException,
44          SecurityProviderNotFoundException, EncryptionStrategyNotFoundException;
45  }