public abstract class AbstractEndpointSecurityFilter extends Object implements EndpointSecurityFilter, MuleContextAware
AbstractEndpointSecurityFilter
provides basic initialisation for
all security filters, namely configuring the SecurityManager for this instanceModifier 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 MuleContextAware
public final void initialise() throws InitialisationException
Initialisable
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.initialise
in interface Initialisable
InitialisationException
- 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
InitialisationException
protected final void initialiseEndpoint() throws InitialisationException
InitialisationException
public boolean isAuthenticate()
public void setAuthenticate(boolean authenticate)
public void setSecurityManager(SecurityManager manager)
setSecurityManager
in interface EndpointSecurityFilter
manager
- public SecurityManager getSecurityManager()
getSecurityManager
in interface EndpointSecurityFilter
public String getSecurityProviders()
getSecurityProviders
in interface EndpointSecurityFilter
public void setSecurityProviders(String providers)
setSecurityProviders
in interface EndpointSecurityFilter
public ImmutableEndpoint getEndpoint()
getEndpoint
in interface EndpointSecurityFilter
public void setEndpoint(ImmutableEndpoint endpoint)
setEndpoint
in interface EndpointSecurityFilter
public void authenticate(MuleEvent event) throws SecurityException, UnknownAuthenticationTypeException, CryptoFailureException, SecurityProviderNotFoundException, EncryptionStrategyNotFoundException, InitialisationException
public CredentialsAccessor getCredentialsAccessor()
getCredentialsAccessor
in interface EndpointSecurityFilter
public void setCredentialsAccessor(CredentialsAccessor credentialsAccessor)
setCredentialsAccessor
in interface EndpointSecurityFilter
protected void updatePayload(MuleMessage message, Object payload) throws TransformerException
TransformerException
protected 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
InitialisationException
Copyright © 2003–2013 MuleSource, Inc.. All rights reserved.