Interface RoleMappingProvider
-
- All Superinterfaces:
SecurityProvider
- All Known Implementing Classes:
SimpleRoleMappingProviderImpl
@Contract public interface RoleMappingProvider extends SecurityProvider
RoleMappingProvider
instances are used by the
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.RoleMappingService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RoleMappingService.RoleDeploymentContext
findOrCreateDeploymentContext(String appContext)
Find an existingRoleDeploymentContext
, 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.-
Methods inherited from interface org.glassfish.security.services.spi.SecurityProvider
initialize
-
-
-
-
Method Detail
-
isUserInRole
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.- Parameters:
appContext
- The application context for the query (can be null).subject
- The targetSubject
.resource
- TheURI
resource for the query.role
- The target role.environment
- The attributes collection representing the environment.attributeResolvers
- The ordered list of attribute resolvers.
-
findOrCreateDeploymentContext
RoleMappingService.RoleDeploymentContext findOrCreateDeploymentContext(String appContext)
Find an existingRoleDeploymentContext
, or create a new one if one does not already exist for the specified application context.- Parameters:
appContext
- The application context for which theRoleDeploymentContext
is desired.
-
-