Class SpringProviderAdapter

java.lang.Object
org.mule.runtime.api.component.AbstractComponent
org.mule.runtime.core.api.security.AbstractSecurityProvider
org.mule.extension.spring.api.security.SpringProviderAdapter
All Implemented Interfaces:
org.mule.runtime.api.component.Component, org.mule.runtime.api.lifecycle.Initialisable, org.mule.runtime.api.meta.NameableObject, org.mule.runtime.api.meta.NamedObject, org.mule.runtime.core.api.security.SecurityProvider, org.springframework.security.authentication.AuthenticationProvider

public class SpringProviderAdapter extends org.mule.runtime.core.api.security.AbstractSecurityProvider implements org.springframework.security.authentication.AuthenticationProvider
SpringProviderAdapter is a wrapper for a Spring Security provider to use with the SecurityManager
Since:
1.0
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.mule.runtime.api.component.Component

    org.mule.runtime.api.component.Component.Annotations
  • Field Summary

    Fields inherited from class org.mule.runtime.api.component.AbstractComponent

    ANNOTATION_NAME, LOCATION_KEY, ROOT_CONTAINER_NAME_KEY

    Fields inherited from interface org.mule.runtime.api.component.Component

    ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATA

    Fields inherited from interface org.mule.runtime.api.lifecycle.Initialisable

    PHASE_NAME
  • Constructor Summary

    Constructors
    Constructor
    Description
    For Spring IoC only
    SpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate)
     
    SpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.mule.runtime.api.security.Authentication
    authenticate(org.mule.runtime.api.security.Authentication authentication)
     
    org.springframework.security.core.Authentication
    authenticate(org.springframework.security.core.Authentication authentication)
     
    protected void
     
     
    org.springframework.security.authentication.AuthenticationManager
     
     
    void
     
    void
    setDelegate(org.springframework.security.authentication.AuthenticationManager delegate)
     
    void
     
    void
    setSecurityProperties(Map securityProperties)
     

    Methods inherited from class org.mule.runtime.core.api.security.AbstractSecurityProvider

    createSecurityContext, getName, getSecurityContextFactory, initialise, setName, setSecurityContextFactory, supports

    Methods inherited from class org.mule.runtime.api.component.AbstractComponent

    getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotations

    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 Details

    • 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 Details

    • doInitialise

      protected void doInitialise() throws org.mule.runtime.api.lifecycle.InitialisationException
      Overrides:
      doInitialise in class org.mule.runtime.core.api.security.AbstractSecurityProvider
      Throws:
      org.mule.runtime.api.lifecycle.InitialisationException
    • authenticate

      public org.mule.runtime.api.security.Authentication authenticate(org.mule.runtime.api.security.Authentication authentication) throws org.mule.runtime.api.security.SecurityException
      Specified by:
      authenticate in interface org.mule.runtime.core.api.security.SecurityProvider
      Throws:
      org.mule.runtime.api.security.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(List<SecurityProperty> securityProperties)
    • getAuthenticationProvider

      public SpringAuthenticationProvider getAuthenticationProvider()
    • setAuthenticationProvider

      public void setAuthenticationProvider(SpringAuthenticationProvider authenticationProvider)
    • setSecurityProperties

      public void setSecurityProperties(Map securityProperties)