Package com.hazelcast.security
Interface IPermissionPolicy
public interface IPermissionPolicy
IPermissionPolicy is used to determine any
Subject
's
permissions to perform a security sensitive Hazelcast operation.-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Config config, Properties properties) ConfiguresIPermissionPolicy
.void
destroy()
DestroysIPermissionPolicy
.getPermissions
(Subject subject, Class<? extends Permission> type) Determines permissions of subject.void
refreshPermissions
(Set<PermissionConfig> permissionConfigs) Replaces existing permissions with given set of permissions.
-
Method Details
-
configure
ConfiguresIPermissionPolicy
.- Parameters:
config
- HazelcastConfig
properties
- additional properties used to configure the IPermissionPolicy
-
getPermissions
Determines permissions of subject.- Parameters:
subject
- theSubject
type
- of permissions in PermissionCollection- Returns:
- PermissionCollection containing subject's permissions
-
refreshPermissions
Replaces existing permissions with given set of permissions. Implementation must take into account thatrefreshPermissions
may be executed concurrently withgetPermissions
.- Parameters:
permissionConfigs
- the new set of permissions to apply
-
destroy
void destroy()DestroysIPermissionPolicy
.
-