Class HazelcastRuntimePermission

All Implemented Interfaces:
Serializable, Guard

public class HazelcastRuntimePermission extends BasicPermission
Class which holds named Hazelcast permissions for Security Manager checks. The list of actions is unused in this class. Permission name supports * wildcard as defined in BasicPermission class.

Usage of protected method name as a target name is recommended. E.g.

 SecurityManager sm = System.getSecurityManager();
 if (sm != null) {
     sm.checkPermission(new HazelcastRuntimePermission("com.hazelcast.config.Config.getLicenseKey"));
See Also:
  • Constructor Details

    • HazelcastRuntimePermission

      public HazelcastRuntimePermission(String name)
      Creates permission with given name.
    • HazelcastRuntimePermission

      public HazelcastRuntimePermission(String name, String actions)
      Creates permission with given name. The actions list is ignored.