org.mule.security
Class AbstractEndpointSecurityFilter
java.lang.Object
org.mule.security.AbstractEndpointSecurityFilter
- All Implemented Interfaces:
- MuleContextAware, Initialisable, EndpointSecurityFilter
- Direct Known Subclasses:
- HttpBasicAuthenticationFilter, HttpBasicAuthenticationFilter, JaasSecurityFilter, MuleEncryptionEndpointSecurityFilter, PGPSecurityFilter
public abstract class AbstractEndpointSecurityFilter
- extends Object
- implements EndpointSecurityFilter, MuleContextAware
AbstractEndpointSecurityFilter
provides basic initialisation for
all security filters, namely configuring the SecurityManager for this instance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected transient Log logger
securityManager
protected SecurityManager securityManager
endpoint
protected ImmutableEndpoint endpoint
muleContext
protected MuleContext muleContext
AbstractEndpointSecurityFilter
public AbstractEndpointSecurityFilter()
setMuleContext
public void setMuleContext(MuleContext context)
- Specified by:
setMuleContext
in interface MuleContextAware
initialise
public final void initialise()
throws InitialisationException
- Description copied from interface:
Initialisable
- Method used to perform any initialisation work. If a fatal error occurs during
initialisation an
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.
- Specified by:
initialise
in interface Initialisable
- Throws:
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdown
RecoverableException
- if an error occurs that can be recovered from
lazyInit
protected final void lazyInit()
throws InitialisationException
- Throws:
InitialisationException
initialiseEndpoint
protected final void initialiseEndpoint()
throws InitialisationException
- Throws:
InitialisationException
isAuthenticate
public boolean isAuthenticate()
setAuthenticate
public void setAuthenticate(boolean authenticate)
setSecurityManager
public void setSecurityManager(SecurityManager manager)
- Specified by:
setSecurityManager
in interface EndpointSecurityFilter
- Parameters:
manager
-
getSecurityManager
public SecurityManager getSecurityManager()
- Specified by:
getSecurityManager
in interface EndpointSecurityFilter
getSecurityProviders
public String getSecurityProviders()
- Specified by:
getSecurityProviders
in interface EndpointSecurityFilter
setSecurityProviders
public void setSecurityProviders(String providers)
- Specified by:
setSecurityProviders
in interface EndpointSecurityFilter
getEndpoint
public ImmutableEndpoint getEndpoint()
- Specified by:
getEndpoint
in interface EndpointSecurityFilter
setEndpoint
public void setEndpoint(ImmutableEndpoint endpoint)
- Specified by:
setEndpoint
in interface EndpointSecurityFilter
authenticate
public void authenticate(MuleEvent event)
throws SecurityException,
UnknownAuthenticationTypeException,
CryptoFailureException,
SecurityProviderNotFoundException,
EncryptionStrategyNotFoundException,
InitialisationException
- Specified by:
authenticate
in interface EndpointSecurityFilter
- Throws:
SecurityException
UnknownAuthenticationTypeException
CryptoFailureException
SecurityProviderNotFoundException
EncryptionStrategyNotFoundException
InitialisationException
getCredentialsAccessor
public CredentialsAccessor getCredentialsAccessor()
- Specified by:
getCredentialsAccessor
in interface EndpointSecurityFilter
setCredentialsAccessor
public void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
- Specified by:
setCredentialsAccessor
in interface EndpointSecurityFilter
updatePayload
protected void updatePayload(MuleMessage message,
Object payload)
throws TransformerException
- Throws:
TransformerException
authenticateInbound
protected abstract void authenticateInbound(MuleEvent event)
throws SecurityException,
CryptoFailureException,
SecurityProviderNotFoundException,
EncryptionStrategyNotFoundException,
UnknownAuthenticationTypeException
- Throws:
SecurityException
CryptoFailureException
SecurityProviderNotFoundException
EncryptionStrategyNotFoundException
UnknownAuthenticationTypeException
authenticateOutbound
protected abstract void authenticateOutbound(MuleEvent event)
throws SecurityException,
SecurityProviderNotFoundException,
CryptoFailureException
- Throws:
SecurityException
SecurityProviderNotFoundException
CryptoFailureException
doInitialise
protected abstract void doInitialise()
throws InitialisationException
- Throws:
InitialisationException
Copyright © 2003-2009 MuleSource, Inc.. All Rights Reserved.