Class AuthenticationInterceptor
- java.lang.Object
-
- org.apache.archiva.redback.rest.services.interceptors.AbstractInterceptor
-
- org.apache.archiva.redback.rest.services.interceptors.AuthenticationInterceptor
-
- All Implemented Interfaces:
javax.ws.rs.container.ContainerRequestFilter
@Service("authenticationInterceptor#rest") @Provider @Priority(2000) public class AuthenticationInterceptor extends AbstractInterceptor implements javax.ws.rs.container.ContainerRequestFilter
This interceptor will check if the user is already logged in the session. If not ask the redback system to authentication trough BASIC http If the user is logged the AuthenticationResult will in the cxf message with the key AuthenticationResult.class- Since:
- 1.3
- Author:
- Olivier Lamy
-
-
Field Summary
-
Fields inherited from class org.apache.archiva.redback.rest.services.interceptors.AbstractInterceptor
AUTHENTICATION_RESULT, SECURITY_SESSION
-
-
Constructor Summary
Constructors Constructor Description AuthenticationInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
filter(javax.ws.rs.container.ContainerRequestContext containerRequestContext)
-
Methods inherited from class org.apache.archiva.redback.rest.services.interceptors.AbstractInterceptor
getAuthenticationResult, getHttpServletRequest, getHttpServletResponse, getRedbackAuthorization, getSecuritySession, ignoreAuth, setHttpServletRequest, setHttpServletResponse
-
-
-
-
Constructor Detail
-
AuthenticationInterceptor
public AuthenticationInterceptor()
-
-
Method Detail
-
filter
public void filter(javax.ws.rs.container.ContainerRequestContext containerRequestContext)
- Specified by:
filter
in interfacejavax.ws.rs.container.ContainerRequestFilter
-
-