public class JaasBasicPermissionsProvider extends Object implements JaasPermissionsProvider
JaasPermissionsProvider
allows to provide simple mapping from multiple
principles to corresponding permission sets.
Typical use case for this provider is role based authorization, i.e. underlying authentication system returns a role as a JAAS principle and different permissions are assigned to users with different roles.
Constructor and Description |
---|
JaasBasicPermissionsProvider(Map<String,SecurityPermissionSet> mapping)
Constructor with permission map.
|
Modifier and Type | Method and Description |
---|---|
SecurityPermissionSet |
permissions(String principal)
Converts
principal to SecurityPermissionSet . |
public JaasBasicPermissionsProvider(Map<String,SecurityPermissionSet> mapping)
mapping
- Permissions mapping.public SecurityPermissionSet permissions(String principal) throws IgniteCheckedException
principal
to SecurityPermissionSet
.permissions
in interface JaasPermissionsProvider
principal
- Principal to convert.IgniteCheckedException
- In case of error.
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024