public interface JaxrsAuthenticationInspector
extends com.holonplatform.auth.AuthenticationInspector
AuthenticationInspector which can be used to inspect an Authentication based security context
using the standard JAX-RS SecurityContext.| Modifier and Type | Method and Description |
|---|---|
static JaxrsAuthenticationInspector |
of(javax.ws.rs.core.SecurityContext securityContext)
Create a
JaxrsAuthenticationInspector using given JAX-RS SecurityContext. |
static JaxrsAuthenticationInspector of(javax.ws.rs.core.SecurityContext securityContext)
JaxrsAuthenticationInspector using given JAX-RS SecurityContext.
The default JAX-RS AuthenticationInspector checks if the security context principal is available and it is an
Authentication compatible instance. Regarding the permission control, if the given security context is an
AuthenticationInspector itself, the permission check is directly delegated to it. Otherwise, the
Permission.getPermission() method is used to obtain the permission as a String role representation and
the authorization control is performed using the SecurityContext.isUserInRole(String) method.
securityContext - The SecurityContext (not null)JaxrsAuthenticationInspector for given security contextCopyright © 2019 The Holon Platform. All rights reserved.