Version: 5.7This feature requires Hazelcast Enterprise, a licensed edition of the Hazelcast Platform.
Enterprise Edition
Enabling Security
With Hazelcast's extensible security you can:
- authenticate both cluster members and clients, and
- perform access control checks on client operations.
You can control access based on roles assigned to clients and client endpoint address.
You can enable security declaratively or programmatically, as shown below.
- XML
- YAML
- Java
xml
<hazelcast>
...
<security enabled="true">
...
</security>
...
</hazelcast>
yaml
hazelcast:
security:
enabled: true
java
Config cfg = new Config();
SecurityConfig securityCfg = cfg.getSecurityConfig();
securityCfg.setEnabled( true );
For information on how to set your Hazelcast Enterprise Edition license, see Managing Enterprise license keys.