public class AuthDynamicFeature extends Object implements javax.ws.rs.container.DynamicFeature
DynamicFeature. As part of the setup it adds the auth check filter AuthCheckFilter
for resources that need to have user authenticated. If authentication is not done, request is forwarded to login
page.| Constructor and Description |
|---|
AuthDynamicFeature() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(javax.ws.rs.container.ResourceInfo resourceInfo,
javax.ws.rs.core.FeatureContext configuration) |
static boolean |
isUserLoggedIn(javax.ws.rs.core.SecurityContext sc) |
public void configure(javax.ws.rs.container.ResourceInfo resourceInfo,
javax.ws.rs.core.FeatureContext configuration)
configure in interface javax.ws.rs.container.DynamicFeaturepublic static boolean isUserLoggedIn(javax.ws.rs.core.SecurityContext sc)
Copyright © 2017 The Apache Software Foundation. All rights reserved.