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_KEYFields inherited from interface org.mule.runtime.api.component.Component
ANNOTATIONS_PROPERTY_NAME, NS_MULE_DOCUMENTATION, NS_MULE_PARSER_METADATAFields inherited from interface org.mule.runtime.api.lifecycle.Initialisable
PHASE_NAME -
Constructor Summary
ConstructorsConstructorDescriptionFor Spring IoC onlySpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate) SpringProviderAdapter(org.springframework.security.authentication.AuthenticationManager delegate, String name) -
Method Summary
Modifier and TypeMethodDescriptionorg.mule.runtime.api.security.Authenticationauthenticate(org.mule.runtime.api.security.Authentication authentication) org.springframework.security.core.Authenticationauthenticate(org.springframework.security.core.Authentication authentication) protected voidorg.springframework.security.authentication.AuthenticationManagervoidsetAuthenticationProvider(SpringAuthenticationProvider authenticationProvider) voidsetDelegate(org.springframework.security.authentication.AuthenticationManager delegate) voidsetSecurityProperties(List<SecurityProperty> securityProperties) voidsetSecurityProperties(Map securityProperties) Methods inherited from class org.mule.runtime.core.api.security.AbstractSecurityProvider
createSecurityContext, getName, getSecurityContextFactory, initialise, setName, setSecurityContextFactory, supportsMethods inherited from class org.mule.runtime.api.component.AbstractComponent
getAnnotation, getAnnotations, getDslSource, getIdentifier, getLocation, getRepresentation, getRootContainerLocation, initRootContainerName, setAnnotationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
doInitialisein classorg.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:
authenticatein interfaceorg.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:
authenticatein interfaceorg.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
-
setSecurityProperties
-
getAuthenticationProvider
-
setAuthenticationProvider
-
setSecurityProperties
-