com.hazelcast.security.jsm

## Class HazelcastRuntimePermission

- java.lang.Object
- - java.security.Permission
  - - java.security.BasicPermission
    - - com.hazelcast.security.jsm.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:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `HazelcastRuntimePermission(String name)` Creates permission with given name.
    `HazelcastRuntimePermission(String name, String actions)` Creates permission with given name.

  - ### Method Summary

    - ### Methods inherited from class java.security.BasicPermission

      `equals, getActions, hashCode, implies, newPermissionCollection`

    - ### Methods inherited from class java.security.Permission

      `checkGuard, getName, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### 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.

Copyright © 2020. All rights reserved.