org.mule.impl.security
Class MuleSecurityManager

java.lang.Object
  extended byorg.mule.impl.security.MuleSecurityManager
All Implemented Interfaces:
Initialisable, UMOSecurityManager

public class MuleSecurityManager
extends java.lang.Object
implements UMOSecurityManager

MuleSecurityManager is a default implementation security manager for a Mule instance

Version:
$Revision: 1.4 $
Author:
Ross Mason

Field Summary
protected static Log logger
          logger used by this class
 
Constructor Summary
MuleSecurityManager()
           
 
Method Summary
 void addEncryptionStrategy(java.lang.String name, UMOEncryptionStrategy strategy)
           
 void addProvider(UMOSecurityProvider provider)
           
 UMOAuthentication authenticate(UMOAuthentication authentication)
           
 UMOSecurityContext createSecurityContext(UMOAuthentication authentication)
           
 UMOEncryptionStrategy getEncryptionStrategy(java.lang.String name)
           
 UMOSecurityProvider getProvider(java.lang.String name)
           
 java.util.List getProviders()
           
 void initialise()
          Method used to perform any initialisation work.
 UMOEncryptionStrategy removeEncryptionStrategy(java.lang.String name)
           
 UMOSecurityProvider removeProvider(java.lang.String name)
           
 void setEncryptionStrategies(java.util.Map strategies)
           
 void setProviders(java.util.List providers)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static transient Log logger
logger used by this class

Constructor Detail

MuleSecurityManager

public MuleSecurityManager()
Method Detail

initialise

public void initialise()
                throws InitialisationException,
                       RecoverableException
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

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(java.lang.String name)
Specified by:
getProvider in interface UMOSecurityManager

removeProvider

public UMOSecurityProvider removeProvider(java.lang.String name)
Specified by:
removeProvider in interface UMOSecurityManager

getProviders

public java.util.List getProviders()
Specified by:
getProviders in interface UMOSecurityManager

setProviders

public void setProviders(java.util.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(java.lang.String name)
Specified by:
getEncryptionStrategy in interface UMOSecurityManager

addEncryptionStrategy

public void addEncryptionStrategy(java.lang.String name,
                                  UMOEncryptionStrategy strategy)
Specified by:
addEncryptionStrategy in interface UMOSecurityManager

removeEncryptionStrategy

public UMOEncryptionStrategy removeEncryptionStrategy(java.lang.String name)
Specified by:
removeEncryptionStrategy in interface UMOSecurityManager

setEncryptionStrategies

public void setEncryptionStrategies(java.util.Map strategies)


Copyright © 2003-2005 SymphonySoft Limited. All Rights Reserved.