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 Summary
FieldsModifier and TypeFieldDescriptionprotected org.springframework.context.support.MessageSourceAccessor -
Constructor Summary
ConstructorsConstructorDescriptionDefaultReverseProxyAuthenticator(String username, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities) -
Method Summary
Modifier 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
-
messages
protected org.springframework.context.support.MessageSourceAccessor messages
-
-
Constructor Details
-
DefaultReverseProxyAuthenticator
public DefaultReverseProxyAuthenticator(String username, @CheckForNull Collection<? extends org.springframework.security.core.GrantedAuthority> authorities)
-
-
Method Details
-
setMessageSource
public void setMessageSource(@NonNull org.springframework.context.MessageSource messageSource) - Specified by:
setMessageSourcein interfaceorg.springframework.context.MessageSourceAware
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
authenticate
public 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 interfaceReverseProxyAuthenticator- 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
-