Package org.opencastproject.security.jwt
Class JWTRequestHeaderAuthenticationFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
- org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilter
-
- org.opencastproject.security.jwt.JWTRequestHeaderAuthenticationFilter
-
- All Implemented Interfaces:
javax.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationEventPublisherAware,org.springframework.context.EnvironmentAware,org.springframework.web.context.ServletContextAware
public class JWTRequestHeaderAuthenticationFilter extends org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilterAuthentication filter for JWTs in request headers.
-
-
Constructor Summary
Constructors Constructor Description JWTRequestHeaderAuthenticationFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()protected ObjectgetPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)voidsetDebug(boolean debug)Setter for the debug switch.voidsetLoginHandler(JWTLoginHandler loginHandler)Setter for the login handler.voidsetPrincipalPrefix(String principalPrefix)Setter for the principal prefix.-
Methods inherited from class org.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilter
getPreAuthenticatedCredentials, setCredentialsRequestHeader, setExceptionIfHeaderMissing, setPrincipalRequestHeader
-
Methods inherited from class org.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
doFilter, getAuthenticationDetailsSource, setApplicationEventPublisher, setAuthenticationDetailsSource, setAuthenticationManager, setCheckForPrincipalChanges, setContinueFilterChainOnUnsuccessfulAuthentication, setInvalidateSessionOnPrincipalChange, successfulAuthentication, unsuccessfulAuthentication
-
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
afterPropertiesSetin classorg.springframework.security.web.authentication.preauth.AbstractPreAuthenticatedProcessingFilter
-
getPreAuthenticatedPrincipal
protected Object getPreAuthenticatedPrincipal(javax.servlet.http.HttpServletRequest request)
- Overrides:
getPreAuthenticatedPrincipalin classorg.springframework.security.web.authentication.preauth.RequestHeaderAuthenticationFilter
-
setPrincipalPrefix
public void setPrincipalPrefix(String principalPrefix)
Setter for the principal prefix.- Parameters:
principalPrefix- The principal prefix.
-
setLoginHandler
public void setLoginHandler(JWTLoginHandler loginHandler)
Setter for the login handler.- Parameters:
loginHandler- The login handler.
-
setDebug
public void setDebug(boolean debug)
Setter for the debug switch.- Parameters:
debug- Value for the debug switch.
-
-