public class TokenAuthFilter extends AuthorizationProvider
ANONYMOUS_USER| Constructor and Description |
|---|
TokenAuthFilter() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.cxf.security.SecurityContext |
handleAuthHeader(javax.ws.rs.container.ContainerRequestContext requestContext,
org.apache.cxf.message.Message msg,
String type,
String auth)
handle the presence of the Authorization header
|
protected org.apache.cxf.security.SecurityContext |
handleOther(javax.ws.rs.container.ContainerRequestContext requestContext,
org.apache.cxf.message.Message msg,
javax.ws.rs.core.HttpHeaders head)
handle other auth methods like sessions, custom headers, etc
|
protected boolean |
isAuthorizationMandatory() |
abortUnauthorized, createAnonymousSC, createSC, filter, loginUser, sendWWWAuthenticateprotected boolean isAuthorizationMandatory()
isAuthorizationMandatory in class AuthorizationProvidertrue if the request should fail if no valid user is foundprotected org.apache.cxf.security.SecurityContext handleAuthHeader(javax.ws.rs.container.ContainerRequestContext requestContext,
org.apache.cxf.message.Message msg,
String type,
String auth)
AuthorizationProviderhandleAuthHeader in class AuthorizationProviderrequestContext - the CXF request contextmsg - the messagetype - the Authorization type (Basic|Bearer|...)auth - the auth part of the headerSecurityContext if logged in or nullprotected org.apache.cxf.security.SecurityContext handleOther(javax.ws.rs.container.ContainerRequestContext requestContext,
org.apache.cxf.message.Message msg,
javax.ws.rs.core.HttpHeaders head)
AuthorizationProviderhandleOther in class AuthorizationProviderrequestContext - the CXF request contextmsg - the messagehead - the HTTP headersSecurityContext if logged in or nullCopyright © 2015–2018 Taimos GmbH. All rights reserved.