org.mule.impl.security
Class MuleSecurityManager
java.lang.Object
org.mule.impl.security.MuleSecurityManager
- All Implemented Interfaces:
- Initialisable, UMOSecurityManager
- public class MuleSecurityManager
- extends Object
- implements UMOSecurityManager
MuleSecurityManager
is a default implementation security manager
for a Mule instance.
Field Summary |
protected static Log |
logger
logger used by this class |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected static final Log logger
- logger used by this class
MuleSecurityManager
public MuleSecurityManager()
initialise
public 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
authenticate
public UMOAuthentication authenticate(UMOAuthentication authentication)
throws SecurityException,
SecurityProviderNotFoundException
- Specified by:
authenticate
in interface UMOSecurityManager
- Throws:
SecurityException
SecurityProviderNotFoundException
addProvider
public void addProvider(UMOSecurityProvider provider)
- Specified by:
addProvider
in interface UMOSecurityManager
getProvider
public UMOSecurityProvider getProvider(String name)
- Specified by:
getProvider
in interface UMOSecurityManager
removeProvider
public UMOSecurityProvider removeProvider(String name)
- Specified by:
removeProvider
in interface UMOSecurityManager
getProviders
public List getProviders()
- Specified by:
getProviders
in interface UMOSecurityManager
setProviders
public void setProviders(List providers)
- Specified by:
setProviders
in interface UMOSecurityManager
createSecurityContext
public UMOSecurityContext createSecurityContext(UMOAuthentication authentication)
throws UnknownAuthenticationTypeException
- Specified by:
createSecurityContext
in interface UMOSecurityManager
- Throws:
UnknownAuthenticationTypeException
getEncryptionStrategy
public UMOEncryptionStrategy getEncryptionStrategy(String name)
- Specified by:
getEncryptionStrategy
in interface UMOSecurityManager
addEncryptionStrategy
public void addEncryptionStrategy(String name,
UMOEncryptionStrategy strategy)
- Specified by:
addEncryptionStrategy
in interface UMOSecurityManager
removeEncryptionStrategy
public UMOEncryptionStrategy removeEncryptionStrategy(String name)
- Specified by:
removeEncryptionStrategy
in interface UMOSecurityManager
setEncryptionStrategies
public void setEncryptionStrategies(Map strategies)
Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.