org.mule.module.spring.security
Class SpringProviderAdapter

java.lang.Object
  extended by org.mule.security.AbstractSecurityProvider
      extended by org.mule.module.spring.security.SpringProviderAdapter
All Implemented Interfaces:
Initialisable, NameableObject, NamedObject, SecurityProvider, org.springframework.security.authentication.AuthenticationProvider

public class SpringProviderAdapter
extends AbstractSecurityProvider
implements org.springframework.security.authentication.AuthenticationProvider

SpringProviderAdapter is a wrapper for a Spring Security provider to use with the SecurityManager


Field Summary
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
SpringProviderAdapter()
          For Spring IoC only
SpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate)
           
SpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate, String name)
           
 
Method Summary
 Authentication authenticate(Authentication authentication)
           
 org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
           
protected  void doInitialise()
           
 SpringAuthenticationProvider getAuthenticationProvider()
           
 org.springframework.security.authentication.AuthenticationManager getDelegate()
           
 Map getSecurityProperties()
           
 void setAuthenticationProvider(SpringAuthenticationProvider authenticationProvider)
           
 void setDelegate(org.springframework.security.authentication.AuthenticationManager delegate)
           
 void setSecurityProperties(Map securityProperties)
           
 
Methods inherited from class org.mule.security.AbstractSecurityProvider
createSecurityContext, getName, getSecurityContextFactory, initialise, setName, setSecurityContextFactory, supports
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.security.authentication.AuthenticationProvider
supports
 

Constructor Detail

SpringProviderAdapter

public SpringProviderAdapter()
For Spring IoC only


SpringProviderAdapter

public SpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate)

SpringProviderAdapter

public SpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate,
                             String name)
Method Detail

doInitialise

protected void doInitialise()
                     throws InitialisationException
Overrides:
doInitialise in class AbstractSecurityProvider
Throws:
InitialisationException

authenticate

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

authenticate

public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
                                                              throws org.springframework.security.core.AuthenticationException
Specified by:
authenticate in interface org.springframework.security.authentication.AuthenticationProvider
Throws:
org.springframework.security.core.AuthenticationException

getDelegate

public org.springframework.security.authentication.AuthenticationManager getDelegate()

setDelegate

public void setDelegate(org.springframework.security.authentication.AuthenticationManager delegate)

getSecurityProperties

public Map getSecurityProperties()

setSecurityProperties

public void setSecurityProperties(Map securityProperties)

getAuthenticationProvider

public SpringAuthenticationProvider getAuthenticationProvider()

setAuthenticationProvider

public void setAuthenticationProvider(SpringAuthenticationProvider authenticationProvider)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.