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
Fields Modifier and Type Field Description protected org.springframework.context.support.MessageSourceAccessor
messages
-
Constructor Summary
Constructors Constructor Description DefaultReverseProxyAuthenticator(String username, GrantedAuthority[] authorities)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterPropertiesSet()
ReverseProxyUserDetails
authenticate(String username, String password)
Authenticates as a user and obtains additional user information from the directory.void
setMessageSource(org.springframework.context.MessageSource messageSource)
-
-
-
Constructor Detail
-
DefaultReverseProxyAuthenticator
public DefaultReverseProxyAuthenticator(String username, @CheckForNull GrantedAuthority[] authorities)
-
-
Method Detail
-
setMessageSource
public void setMessageSource(@NonNull org.springframework.context.MessageSource messageSource)
- Specified by:
setMessageSource
in interfaceorg.springframework.context.MessageSourceAware
-
afterPropertiesSet
public void afterPropertiesSet() throws Exception
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
authenticate
public ReverseProxyUserDetails authenticate(String username, String password) throws DataAccessException
Description copied from interface:ReverseProxyAuthenticator
Authenticates as a user and obtains additional user information from the directory.- Specified by:
authenticate
in 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
-
-