public class ReverseProxyAuthenticationProvider
extends org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider
| Constructor and Description |
|---|
ReverseProxyAuthenticationProvider(ReverseProxyAuthenticator authenticator)
Creates an instance with the supplied authenticator and a null authorities populator.
|
ReverseProxyAuthenticationProvider(ReverseProxyAuthenticator authenticator,
ReverseProxyAuthoritiesPopulator authoritiesPopulator)
Create an instance with the supplied authenticator and authorities populator implementations.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
additionalAuthenticationChecks(org.acegisecurity.userdetails.UserDetails userDetails,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication) |
protected org.acegisecurity.userdetails.UserDetails |
createUserDetails(ReverseProxyUserDetails user,
String username,
String password)
Creates the final UserDetails object that will be returned by the provider once the user has
been authenticated.
|
protected ReverseProxyAuthoritiesPopulator |
getAuthoritiesPopulator() |
boolean |
isIncludeDetailsObject() |
protected org.acegisecurity.userdetails.UserDetails |
retrieveUser(String username,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication) |
void |
setIncludeDetailsObject(boolean includeDetailsObject) |
afterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setUserCache, supportspublic ReverseProxyAuthenticationProvider(ReverseProxyAuthenticator authenticator, ReverseProxyAuthoritiesPopulator authoritiesPopulator)
authenticator - the authentication strategy (bind, password comparison, etc)
to be used by this provider for authenticating users.authoritiesPopulator - the strategy for obtaining the authorities for a given user after they've been
authenticated.public ReverseProxyAuthenticationProvider(ReverseProxyAuthenticator authenticator)
authenticator - the authenticator strategy.protected ReverseProxyAuthoritiesPopulator getAuthoritiesPopulator()
protected void additionalAuthenticationChecks(org.acegisecurity.userdetails.UserDetails userDetails,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
throws org.acegisecurity.AuthenticationException
additionalAuthenticationChecks in class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProviderorg.acegisecurity.AuthenticationExceptionprotected org.acegisecurity.userdetails.UserDetails createUserDetails(ReverseProxyUserDetails user, String username, String password)
The ReverseProxyAuthoritiesPopulator will be used to create the granted authorites for the user.
Can be overridden to customize the creation of the final UserDetails instance. The default will merge any additional authorities retrieved from the populator with the propertis of original ldapUser object and set the values of the username and password.
user - The intermediate LdapUserDetails instance returned by the authenticator.username - the username submitted to the providerpassword - the password submitted to the providerprotected org.acegisecurity.userdetails.UserDetails retrieveUser(String username, org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication) throws org.acegisecurity.AuthenticationException
retrieveUser in class org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProviderorg.acegisecurity.AuthenticationExceptionpublic boolean isIncludeDetailsObject()
public void setIncludeDetailsObject(boolean includeDetailsObject)
Copyright © 2004-2014. All Rights Reserved.