public abstract class AbstractEndpointSecurityFilter extends Object implements EndpointSecurityFilter, MuleContextAware
AbstractEndpointSecurityFilter provides basic initialisation for
all security filters, namely configuring the SecurityManager for this instance| Modifier and Type | Field and Description |
|---|---|
protected ImmutableEndpoint |
endpoint |
protected org.apache.commons.logging.Log |
logger |
protected MuleContext |
muleContext |
protected SecurityManager |
securityManager |
PHASE_NAME| Constructor and Description |
|---|
AbstractEndpointSecurityFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(MuleEvent event) |
protected abstract void |
authenticateInbound(MuleEvent event) |
protected abstract void |
authenticateOutbound(MuleEvent event) |
protected abstract void |
doInitialise() |
CredentialsAccessor |
getCredentialsAccessor() |
ImmutableEndpoint |
getEndpoint() |
SecurityManager |
getSecurityManager() |
String |
getSecurityProviders() |
void |
initialise()
Method used to perform any initialisation work.
|
protected void |
initialiseEndpoint() |
boolean |
isAuthenticate() |
protected void |
lazyInit() |
void |
setAuthenticate(boolean authenticate) |
void |
setCredentialsAccessor(CredentialsAccessor credentialsAccessor) |
void |
setEndpoint(ImmutableEndpoint endpoint) |
void |
setMuleContext(MuleContext context) |
void |
setSecurityManager(SecurityManager manager) |
void |
setSecurityProviders(String providers) |
protected void |
updatePayload(MuleMessage message,
Object payload) |
protected transient org.apache.commons.logging.Log logger
protected SecurityManager securityManager
protected ImmutableEndpoint endpoint
protected MuleContext muleContext
public void setMuleContext(MuleContext context)
setMuleContext in interface MuleContextAwarepublic final void initialise()
throws InitialisationException
InitialisableInitialisationException 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.initialise in interface InitialisableInitialisationException - if a fatal error occurs causing the Mule instance to shutdownRecoverableException - if an error occurs that can be recovered fromprotected final void lazyInit()
throws InitialisationException
InitialisationExceptionprotected final void initialiseEndpoint()
throws InitialisationException
InitialisationExceptionpublic boolean isAuthenticate()
public void setAuthenticate(boolean authenticate)
public void setSecurityManager(SecurityManager manager)
setSecurityManager in interface EndpointSecurityFiltermanager - public SecurityManager getSecurityManager()
getSecurityManager in interface EndpointSecurityFilterpublic String getSecurityProviders()
getSecurityProviders in interface EndpointSecurityFilterpublic void setSecurityProviders(String providers)
setSecurityProviders in interface EndpointSecurityFilterpublic ImmutableEndpoint getEndpoint()
getEndpoint in interface EndpointSecurityFilterpublic void setEndpoint(ImmutableEndpoint endpoint)
setEndpoint in interface EndpointSecurityFilterpublic void authenticate(MuleEvent event) throws SecurityException, UnknownAuthenticationTypeException, CryptoFailureException, SecurityProviderNotFoundException, EncryptionStrategyNotFoundException, InitialisationException
public CredentialsAccessor getCredentialsAccessor()
getCredentialsAccessor in interface EndpointSecurityFilterpublic void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
setCredentialsAccessor in interface EndpointSecurityFilterprotected void updatePayload(MuleMessage message, Object payload) throws TransformerException
TransformerExceptionprotected abstract void authenticateInbound(MuleEvent event) throws SecurityException, CryptoFailureException, SecurityProviderNotFoundException, EncryptionStrategyNotFoundException, UnknownAuthenticationTypeException
protected abstract void authenticateOutbound(MuleEvent event) throws SecurityException, SecurityProviderNotFoundException, CryptoFailureException
protected abstract void doInitialise()
throws InitialisationException
InitialisationExceptionCopyright © 2003-2012 MuleSource, Inc.. All Rights Reserved.