01: /*
02: * $Id: EndpointSecurityFilter.java 10489 2008-01-23 17:53:38Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.api.security;
12:
13: import org.mule.api.MuleEvent;
14: import org.mule.api.endpoint.ImmutableEndpoint;
15: import org.mule.api.lifecycle.Initialisable;
16: import org.mule.api.lifecycle.InitialisationException;
17:
18: /**
19: * <code>EndpointSecurityFilter</code> is a base filter for secure filtering of
20: * inbound and outbout event flow
21: */
22: public interface EndpointSecurityFilter extends Initialisable {
23: /**
24: * @param manager
25: */
26: void setSecurityManager(SecurityManager manager);
27:
28: SecurityManager getSecurityManager();
29:
30: String getSecurityProviders();
31:
32: void setSecurityProviders(String providers);
33:
34: void setEndpoint(ImmutableEndpoint endpoint);
35:
36: ImmutableEndpoint getEndpoint();
37:
38: void setCredentialsAccessor(CredentialsAccessor accessor);
39:
40: CredentialsAccessor getCredentialsAccessor();
41:
42: void authenticate(MuleEvent event) throws SecurityException,
43: UnknownAuthenticationTypeException, CryptoFailureException,
44: SecurityProviderNotFoundException,
45: EncryptionStrategyNotFoundException,
46: InitialisationException;
47: }
|