Created
February 9, 2018 16:39
-
-
Save kwart/b63410222a2452b913e145ef5d5abdac to your computer and use it in GitHub Desktop.
Create Hazelcast configuration with custom login module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LoginModuleConfig loginModuleConfig = new LoginModuleConfig(); | |
loginModuleConfig.setClassName(CustomVerifyingLoginModule.class.getName()); | |
loginModuleConfig.setUsage(LoginModuleUsage.REQUIRED); | |
Properties properties = new Properties(); | |
properties.setProperty("allowed-hosts", "192.168.2.*,server-x.my-company.example") | |
loginModuleConfig.setProperties(properties); | |
config.getSecurityConfig().setEnabled(true).addMemberLoginModuleConfig(loginModuleConfig); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment