Class DefaultReverseProxyAuthenticator
java.lang.Object
org.jenkinsci.plugins.reverse_proxy_auth.auth.DefaultReverseProxyAuthenticator
- All Implemented Interfaces:
- ReverseProxyAuthenticator,- org.springframework.beans.factory.Aware,- org.springframework.beans.factory.InitializingBean,- org.springframework.context.MessageSourceAware
public class DefaultReverseProxyAuthenticator
extends Object
implements ReverseProxyAuthenticator, org.springframework.beans.factory.InitializingBean, org.springframework.context.MessageSourceAware
- Author:
- Wilder Rodrigues (wrodrigues@schubergphilis.com)
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected org.springframework.context.support.MessageSourceAccessor
- 
Constructor SummaryConstructorsConstructorDescriptionDefaultReverseProxyAuthenticator(String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) 
- 
Method SummaryModifier and TypeMethodDescriptionvoidauthenticate(String username, String password) Authenticates as a user and obtains additional user information from the directory.voidsetMessageSource(org.springframework.context.MessageSource messageSource) 
- 
Field Details- 
messagesprotected org.springframework.context.support.MessageSourceAccessor messages
 
- 
- 
Constructor Details- 
DefaultReverseProxyAuthenticatorpublic DefaultReverseProxyAuthenticator(String username, @CheckForNull Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) 
 
- 
- 
Method Details- 
setMessageSourcepublic void setMessageSource(@NonNull org.springframework.context.MessageSource messageSource) - Specified by:
- setMessageSourcein interface- org.springframework.context.MessageSourceAware
 
- 
afterPropertiesSetpublic void afterPropertiesSet()- Specified by:
- afterPropertiesSetin interface- org.springframework.beans.factory.InitializingBean
 
- 
authenticatepublic ReverseProxyUserDetails authenticate(String username, String password) throws DataAccessException Description copied from interface:ReverseProxyAuthenticatorAuthenticates as a user and obtains additional user information from the directory.- Specified by:
- authenticatein interface- ReverseProxyAuthenticator
- Parameters:
- username- the user's login name (not their DN).
- password- the user's password supplied at login.
- Returns:
- the details of the successfully authenticated user.
- Throws:
- DataAccessException
 
 
-