Class AbstractInterceptor
- java.lang.Object
-
- org.apache.archiva.redback.rest.services.interceptors.AbstractInterceptor
-
- Direct Known Subclasses:
AuthenticationInterceptor
,BearerAuthInterceptor
,PermissionsInterceptor
,RequestValidationInterceptor
public abstract class AbstractInterceptor extends Object
- Since:
- 1.3
- Author:
- Olivier Lamy
-
-
Field Summary
Fields Modifier and Type Field Description static String
AUTHENTICATION_RESULT
static String
SECURITY_SESSION
-
Constructor Summary
Constructors Constructor Description AbstractInterceptor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AuthenticationResult
getAuthenticationResult(javax.ws.rs.container.ContainerRequestContext containerRequestContext, HttpAuthenticator httpAuthenticator, javax.servlet.http.HttpServletRequest request)
javax.servlet.http.HttpServletRequest
getHttpServletRequest()
javax.servlet.http.HttpServletResponse
getHttpServletResponse()
RedbackAuthorization
getRedbackAuthorization(javax.ws.rs.container.ResourceInfo resourceInfo)
protected SecuritySession
getSecuritySession(javax.ws.rs.container.ContainerRequestContext containerRequestContext, HttpAuthenticator httpAuthenticator, javax.servlet.http.HttpServletRequest request)
static boolean
ignoreAuth(String requestPath)
protected void
setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
protected void
setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
-
-
-
Field Detail
-
AUTHENTICATION_RESULT
public static final String AUTHENTICATION_RESULT
- See Also:
- Constant Field Values
-
SECURITY_SESSION
public static final String SECURITY_SESSION
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractInterceptor
public AbstractInterceptor()
-
-
Method Detail
-
getHttpServletRequest
public javax.servlet.http.HttpServletRequest getHttpServletRequest()
-
getHttpServletResponse
public javax.servlet.http.HttpServletResponse getHttpServletResponse()
-
setHttpServletRequest
protected void setHttpServletRequest(javax.servlet.http.HttpServletRequest request)
-
setHttpServletResponse
protected void setHttpServletResponse(javax.servlet.http.HttpServletResponse response)
-
ignoreAuth
public static final boolean ignoreAuth(String requestPath)
-
getRedbackAuthorization
public RedbackAuthorization getRedbackAuthorization(javax.ws.rs.container.ResourceInfo resourceInfo)
-
getSecuritySession
protected SecuritySession getSecuritySession(javax.ws.rs.container.ContainerRequestContext containerRequestContext, HttpAuthenticator httpAuthenticator, javax.servlet.http.HttpServletRequest request)
-
getAuthenticationResult
protected AuthenticationResult getAuthenticationResult(javax.ws.rs.container.ContainerRequestContext containerRequestContext, HttpAuthenticator httpAuthenticator, javax.servlet.http.HttpServletRequest request)
-
-