@Contract public interface RoleMappingProvider extends SecurityProvider
RoleMappingProvider instances are used by the
RoleMappingService
to evaluate role policy conditions.
The security provider is part of a plug-in mechanism which allows decisions
to be handled by a configured implementation.| Modifier and Type | Method and Description |
|---|---|
RoleMappingService.RoleDeploymentContext |
findOrCreateDeploymentContext(String appContext)
Find an existing
RoleDeploymentContext, or create a new one if one does not
already exist for the specified application context. |
boolean |
isUserInRole(String appContext,
AzSubject subject,
AzResource resource,
String role,
AzEnvironment environment,
List<AzAttributeResolver> attributeResolvers)
Determine whether the user (
AzSubject) has the indicated role
for a given resource (AzResource) and application context. |
initializeboolean isUserInRole(String appContext, AzSubject subject, AzResource resource, String role, AzEnvironment environment, List<AzAttributeResolver> attributeResolvers)
AzSubject) has the indicated role
for a given resource (AzResource) and application context.appContext - The application context for the query (can be null).subject - The target Subject.resource - The URI resource for the query.role - The target role.environment - The attributes collection representing the environment.attributeResolvers - The ordered list of attribute resolvers.org.glassfish.security.services.api.authorization.RoleMappingService#isUserInRole(String, AzSubject, AzResource, String)}RoleMappingService.RoleDeploymentContext findOrCreateDeploymentContext(String appContext)
RoleDeploymentContext, or create a new one if one does not
already exist for the specified application context.appContext - The application context for which the RoleDeploymentContext is desired.org.glassfish.security.services.api.authorization.RoleMappingService#findOrCreateDeploymentContext(String)}Copyright © 2017. All rights reserved.