@Service(name="simpleRoleMapping") @PerLookup public class SimpleRoleMappingProviderImpl extends Object implements RoleMappingProvider
| Constructor and Description |
|---|
SimpleRoleMappingProviderImpl() |
| 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. |
void |
initialize(SecurityProvider providerConfig)
Initialize the security provider instance with the specific security provider configuration.
|
boolean |
isUserInRole(String appContext,
AzSubject subject,
AzResource resource,
String role,
AzEnvironment environment,
List<AzAttributeResolver> resolvers)
Determine whether the user (
AzSubject) has the indicated role
for a given resource (AzResource) and application context. |
public void initialize(SecurityProvider providerConfig)
SecurityProviderinitialize in interface SecurityProviderpublic boolean isUserInRole(String appContext, AzSubject subject, AzResource resource, String role, AzEnvironment environment, List<AzAttributeResolver> resolvers)
RoleMappingProviderAzSubject) has the indicated role
for a given resource (AzResource) and application context.isUserInRole in interface RoleMappingProviderappContext - 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.resolvers - The ordered list of attribute resolvers.org.glassfish.security.services.api.authorization.RoleMappingService#isUserInRole(String, AzSubject, AzResource, String)}public RoleMappingService.RoleDeploymentContext findOrCreateDeploymentContext(String appContext)
RoleMappingProviderRoleDeploymentContext, or create a new one if one does not
already exist for the specified application context.findOrCreateDeploymentContext in interface RoleMappingProviderappContext - The application context for which the RoleDeploymentContext is desired.org.glassfish.security.services.api.authorization.RoleMappingService#findOrCreateDeploymentContext(String)}Copyright © 2019. All rights reserved.