public class FederationAuthenticationProvider extends Object implements org.springframework.security.authentication.AuthenticationProvider, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
AuthenticationProvider implements the integration with the Identity Provider
based on the WS-Federation Passive Requestor Profile.| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.support.MessageSourceAccessor |
messages |
| Constructor and Description |
|---|
FederationAuthenticationProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
org.springframework.security.core.userdetails.AuthenticationUserDetailsService<FederationResponseAuthenticationToken> |
getAuthenticationUserDetailsService() |
FederationConfig |
getFederationConfig() |
protected org.springframework.security.core.userdetails.UserDetails |
loadUserByFederationResponse(org.apache.cxf.fediz.core.processor.FedizResponse response)
Template method for retrieving the UserDetails based on the federation response (wresult parameter).
|
void |
setAuthenticationUserDetailsService(org.springframework.security.core.userdetails.AuthenticationUserDetailsService<FederationResponseAuthenticationToken> authenticationUserDetailsService) |
void |
setAuthoritiesMapper(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper authoritiesMapper) |
void |
setFederationConfig(FederationConfig federationConfig) |
void |
setMessageSource(org.springframework.context.MessageSource messageSource) |
boolean |
supports(Class<?> authentication) |
public org.springframework.security.core.userdetails.AuthenticationUserDetailsService<FederationResponseAuthenticationToken> getAuthenticationUserDetailsService()
public void setAuthenticationUserDetailsService(org.springframework.security.core.userdetails.AuthenticationUserDetailsService<FederationResponseAuthenticationToken> authenticationUserDetailsService)
public FederationConfig getFederationConfig()
public void setFederationConfig(FederationConfig federationConfig)
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
authenticate in interface org.springframework.security.authentication.AuthenticationProviderorg.springframework.security.core.AuthenticationExceptionprotected org.springframework.security.core.userdetails.UserDetails loadUserByFederationResponse(org.apache.cxf.fediz.core.processor.FedizResponse response)
response - The WS Federation responsepublic void setMessageSource(org.springframework.context.MessageSource messageSource)
setMessageSource in interface org.springframework.context.MessageSourceAwarepublic void setAuthoritiesMapper(org.springframework.security.core.authority.mapping.GrantedAuthoritiesMapper authoritiesMapper)
public boolean supports(Class<?> authentication)
supports in interface org.springframework.security.authentication.AuthenticationProviderApache Fediz