@Override public LegacyLDAPSecuritySettingPlugin init(Map<String, String> options) { if (options != null) { initialContextFactory = getOption(options, INITIAL_CONTEXT_FACTORY, initialContextFactory); connectionURL = getOption(options, CONNECTION_URL, connectionURL); connectionUsername = getOption(options, CONNECTION_USERNAME, connectionUsername); connectionPassword = getOption(options, CONNECTION_PASSWORD, connectionPassword); connectionProtocol = getOption(options, CONNECTION_PROTOCOL, connectionProtocol); authentication = getOption(options, AUTHENTICATION, authentication); destinationBase = getOption(options, DESTINATION_BASE, destinationBase); filter = getOption(options, FILTER, filter); roleAttribute = getOption(options, ROLE_ATTRIBUTE, roleAttribute); adminPermissionValue = getOption(options, ADMIN_PERMISSION_VALUE, adminPermissionValue); readPermissionValue = getOption(options, READ_PERMISSION_VALUE, readPermissionValue); writePermissionValue = getOption(options, WRITE_PERMISSION_VALUE, writePermissionValue); enableListener = getOption(options, ENABLE_LISTENER, Boolean.TRUE.toString()).equalsIgnoreCase(Boolean.TRUE.toString()); } return this; }