org.mule.module.acegi
Class AcegiProviderAdapter

java.lang.Object
  extended by org.mule.module.acegi.AcegiProviderAdapter
All Implemented Interfaces:
org.acegisecurity.providers.AuthenticationProvider, Initialisable, SecurityProvider

public class AcegiProviderAdapter
extends Object
implements SecurityProvider, org.acegisecurity.providers.AuthenticationProvider

AcegiProviderAdapter is a wrapper for an Acegi Security provider to use with the SecurityManager


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
AcegiProviderAdapter()
           
AcegiProviderAdapter(org.acegisecurity.providers.AuthenticationProvider delegate)
           
AcegiProviderAdapter(org.acegisecurity.providers.AuthenticationProvider delegate, String name)
           
 
Method Summary
 Authentication authenticate(Authentication authentication)
           
 org.acegisecurity.Authentication authenticate(org.acegisecurity.Authentication authentication)
           
 SecurityContext createSecurityContext(Authentication auth)
           
 org.acegisecurity.providers.AuthenticationProvider getDelegate()
           
 String getName()
           
 Map getSecurityProperties()
           
 void initialise()
          Method used to perform any initialisation work.
 void setDelegate(org.acegisecurity.providers.AuthenticationProvider delegate)
           
 void setName(String name)
           
 void setSecurityProperties(Map securityProperties)
           
 boolean supports(Class aClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AcegiProviderAdapter

public AcegiProviderAdapter()

AcegiProviderAdapter

public AcegiProviderAdapter(org.acegisecurity.providers.AuthenticationProvider delegate)

AcegiProviderAdapter

public AcegiProviderAdapter(org.acegisecurity.providers.AuthenticationProvider delegate,
                            String name)
Method Detail

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
RecoverableException - if an error occurs that can be recovered from

setName

public void setName(String name)
Specified by:
setName in interface SecurityProvider

getName

public String getName()
Specified by:
getName in interface SecurityProvider

authenticate

public Authentication authenticate(Authentication authentication)
                            throws SecurityException
Specified by:
authenticate in interface SecurityProvider
Throws:
SecurityException

authenticate

public org.acegisecurity.Authentication authenticate(org.acegisecurity.Authentication authentication)
                                              throws org.acegisecurity.AuthenticationException
Specified by:
authenticate in interface org.acegisecurity.providers.AuthenticationProvider
Throws:
org.acegisecurity.AuthenticationException

supports

public boolean supports(Class aClass)
Specified by:
supports in interface org.acegisecurity.providers.AuthenticationProvider
Specified by:
supports in interface SecurityProvider

getDelegate

public org.acegisecurity.providers.AuthenticationProvider getDelegate()

setDelegate

public void setDelegate(org.acegisecurity.providers.AuthenticationProvider delegate)

createSecurityContext

public SecurityContext createSecurityContext(Authentication auth)
                                      throws UnknownAuthenticationTypeException
Specified by:
createSecurityContext in interface SecurityProvider
Throws:
UnknownAuthenticationTypeException

getSecurityProperties

public Map getSecurityProperties()

setSecurityProperties

public void setSecurityProperties(Map securityProperties)


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.