com.atlassian.crowd.integration.acegi
Class DynamicProviderManager

java.lang.Object
  extended by org.acegisecurity.AbstractAuthenticationManager
      extended by org.acegisecurity.providers.ProviderManager
          extended by com.atlassian.crowd.integration.acegi.DynamicProviderManager
All Implemented Interfaces:
org.acegisecurity.AuthenticationManager, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.context.MessageSourceAware

public class DynamicProviderManager
extends org.acegisecurity.providers.ProviderManager

An extension to the standard ProviderManager implementation of the AuthenticationManager wich allows adding and removing provider managers at runtime. This ensures that the provider manager is threadsafe (to some degree). It is still possible to obtain a collection of providers and manipulate it in a non-threadsafe manner by using the getter/setter. Note: if you have no need for runtime-pluggable behaviour, simply use org.acegisecurity.providers.ProviderManager.


Field Summary
 
Fields inherited from class org.acegisecurity.providers.ProviderManager
messages
 
Constructor Summary
DynamicProviderManager()
           
 
Method Summary
 void addProvider(org.acegisecurity.providers.AuthenticationProvider provider)
           
 org.acegisecurity.Authentication doAuthentication(org.acegisecurity.Authentication authentication)
           
 boolean removeProvider(org.acegisecurity.providers.AuthenticationProvider provider)
           
 
Methods inherited from class org.acegisecurity.providers.ProviderManager
afterPropertiesSet, doAddExtraDefaultExceptionMappings, getProviders, getSessionController, setApplicationEventPublisher, setMessageSource, setProviders, setSessionController
 
Methods inherited from class org.acegisecurity.AbstractAuthenticationManager
authenticate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynamicProviderManager

public DynamicProviderManager()
Method Detail

doAuthentication

public org.acegisecurity.Authentication doAuthentication(org.acegisecurity.Authentication authentication)
                                                  throws org.acegisecurity.AuthenticationException
Overrides:
doAuthentication in class org.acegisecurity.providers.ProviderManager
Throws:
org.acegisecurity.AuthenticationException

addProvider

public void addProvider(org.acegisecurity.providers.AuthenticationProvider provider)

removeProvider

public boolean removeProvider(org.acegisecurity.providers.AuthenticationProvider provider)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.