public class MuleSecurityManager extends Object implements SecurityManager
MuleSecurityManager is a default implementation security manager
for a Mule instance.| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger
logger used by this class
|
PHASE_NAME| Constructor and Description |
|---|
MuleSecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addEncryptionStrategy(EncryptionStrategy strategy) |
void |
addProvider(SecurityProvider provider) |
Authentication |
authenticate(Authentication authentication) |
SecurityContext |
createSecurityContext(Authentication authentication) |
Collection<EncryptionStrategy> |
getEncryptionStrategies() |
EncryptionStrategy |
getEncryptionStrategy(String name) |
SecurityProvider |
getProvider(String name) |
Collection<SecurityProvider> |
getProviders() |
void |
initialise()
Method used to perform any initialisation work.
|
EncryptionStrategy |
removeEncryptionStrategy(String name) |
SecurityProvider |
removeProvider(String name) |
void |
setEncryptionStrategies(Collection<EncryptionStrategy> strategies) |
void |
setProviders(Collection<SecurityProvider> providers) |
protected static final org.apache.commons.logging.Log logger
public 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 frompublic Authentication authenticate(Authentication authentication) throws SecurityException, SecurityProviderNotFoundException
authenticate in interface SecurityManagerSecurityExceptionSecurityProviderNotFoundExceptionpublic void addProvider(SecurityProvider provider)
addProvider in interface SecurityManagerpublic SecurityProvider getProvider(String name)
getProvider in interface SecurityManagerpublic SecurityProvider removeProvider(String name)
removeProvider in interface SecurityManagerpublic Collection<SecurityProvider> getProviders()
getProviders in interface SecurityManagerpublic void setProviders(Collection<SecurityProvider> providers)
setProviders in interface SecurityManagerpublic SecurityContext createSecurityContext(Authentication authentication) throws UnknownAuthenticationTypeException
createSecurityContext in interface SecurityManagerUnknownAuthenticationTypeExceptionpublic EncryptionStrategy getEncryptionStrategy(String name)
getEncryptionStrategy in interface SecurityManagerpublic void addEncryptionStrategy(EncryptionStrategy strategy)
addEncryptionStrategy in interface SecurityManagerpublic EncryptionStrategy removeEncryptionStrategy(String name)
removeEncryptionStrategy in interface SecurityManagerpublic Collection<EncryptionStrategy> getEncryptionStrategies()
getEncryptionStrategies in interface SecurityManagerpublic void setEncryptionStrategies(Collection<EncryptionStrategy> strategies)
setEncryptionStrategies in interface SecurityManagerCopyright © 2003–2015 MuleSoft, Inc.. All rights reserved.