Class HazelcastRuntimePermission

  • All Implemented Interfaces:,

    public class HazelcastRuntimePermission
    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:
    Serialized Form
    • Constructor Summary

      Constructor Description
      HazelcastRuntimePermission​(java.lang.String name)
      Creates permission with given name.
      HazelcastRuntimePermission​(java.lang.String name, java.lang.String actions)
      Creates permission with given name.
    • Method Summary

      • Methods inherited from class

        equals, getActions, hashCode, implies, newPermissionCollection
      • Methods inherited from class

        checkGuard, getName, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HazelcastRuntimePermission

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

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