@Provider @Priority(value=1000) public abstract class AuthenticationFilter extends Object implements javax.ws.rs.container.ContainerRequestFilter
AuthenticationFilter.| Constructor and Description |
|---|
AuthenticationFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
filter(javax.ws.rs.container.ContainerRequestContext requestContext) |
protected javax.ws.rs.core.SecurityContext |
newSecurityContext(String username)
Factory method for create a new security context with the given user
name.
|
protected abstract String |
onValidateToken(String token)
Abstract callback method that checks if the given token is valid.
|
public void filter(javax.ws.rs.container.ContainerRequestContext requestContext)
throws IOException
filter in interface javax.ws.rs.container.ContainerRequestFilterIOExceptionprotected abstract String onValidateToken(String token) throws Exception
token - the tokenException - if the token is not validprotected javax.ws.rs.core.SecurityContext newSecurityContext(String username)
username - the user nameCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.