Class LegacyLDAPSecuritySettingPlugin
java.lang.Object
org.apache.activemq.artemis.core.server.impl.LegacyLDAPSecuritySettingPlugin
- All Implemented Interfaces:
Serializable,SecuritySettingPlugin
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFetch the security role information from the external environment (e.g. file, LDAP, etc.) and return it.Initialize the plugin with the given configuration options.booleanprotected booleanbooleanbooleanvoidnamingExceptionThrown(NamingExceptionEvent namingExceptionEvent) Handler for exception events from the registry.voidobjectAdded(NamingEvent namingEvent) Handler for new policy entries in the directory.voidobjectChanged(NamingEvent namingEvent) Handler for changed policy entries in the directory.voidobjectRemoved(NamingEvent namingEvent) Handler for removed policy entries in the directory.voidobjectRenamed(NamingEvent namingEvent) protected voidopen()setAdminPermissionValue(String adminPermissionValue) setAllowQueueAdminOnRead(boolean allowQueueAdminOnRead) setAuthentication(String authentication) setConnectionPassword(String connectionPassword) setConnectionProtocol(String connectionProtocol) setConnectionURL(String connectionURL) setConnectionUsername(String connectionUsername) setDestinationBase(String destinationBase) setEnableListener(boolean enableListener) setInitialContextFactory(String initialContextFactory) setMapAdminToManage(boolean mapAdminToManage) setReadPermissionValue(String readPermissionValue) setRoleAttribute(String roleAttribute) voidsetSecurityRepository(HierarchicalRepository<Set<Role>> securityRepository) This method is called by the broker during the start-up process.setWritePermissionValue(String writePermissionValue) stop()Clean up all the associated resources associated with this plugin (e.g.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.activemq.artemis.core.server.SecuritySettingPlugin
setInit
-
Field Details
-
INITIAL_CONTEXT_FACTORY
- See Also:
-
CONNECTION_URL
- See Also:
-
CONNECTION_USERNAME
- See Also:
-
CONNECTION_PASSWORD
- See Also:
-
CONNECTION_PROTOCOL
- See Also:
-
AUTHENTICATION
- See Also:
-
ROLE_ATTRIBUTE
- See Also:
-
FILTER
- See Also:
-
DESTINATION_BASE
- See Also:
-
ADMIN_PERMISSION_VALUE
- See Also:
-
READ_PERMISSION_VALUE
- See Also:
-
WRITE_PERMISSION_VALUE
- See Also:
-
ENABLE_LISTENER
- See Also:
-
REFRESH_INTERVAL
- See Also:
-
MAP_ADMIN_TO_MANAGE
- See Also:
-
ALLOW_QUEUE_ADMIN_ON_READ
- See Also:
-
-
Constructor Details
-
LegacyLDAPSecuritySettingPlugin
public LegacyLDAPSecuritySettingPlugin()
-
-
Method Details
-
init
Description copied from interface:SecuritySettingPluginInitialize the plugin with the given configuration options. This method is called by the broker when the file-based configuration is read (seeorg.apache.activemq.artemis.core.deployers.impl.FileConfigurationParser#parseSecurity(org.w3c.dom.Element, org.apache.activemq.artemis.core.config.Configuration). If you're creating/configuring the plugin programmatically then the recommended approach is to simply use the plugin's getters/setters rather than this method.- Specified by:
initin interfaceSecuritySettingPlugin- Parameters:
options- name/value pairs used to configure the SecuritySettingPlugin instance- Returns:
thisinstance
-
getRoleAttribute
-
setRoleAttribute
-
getFilter
-
setFilter
-
getDestinationBase
-
setDestinationBase
-
getAuthentication
-
setAuthentication
-
getConnectionPassword
-
setConnectionPassword
-
getConnectionProtocol
-
setConnectionProtocol
-
getConnectionURL
-
setConnectionURL
-
getConnectionUsername
-
setConnectionUsername
-
getInitialContextFactory
-
getAdminPermissionValue
-
setAdminPermissionValue
-
getReadPermissionValue
-
setReadPermissionValue
-
getWritePermissionValue
-
setWritePermissionValue
-
setInitialContextFactory
-
isEnableListener
public boolean isEnableListener() -
setEnableListener
-
isMapAdminToManage
public boolean isMapAdminToManage() -
setMapAdminToManage
-
isAllowQueueAdminOnRead
public boolean isAllowQueueAdminOnRead() -
setAllowQueueAdminOnRead
-
isContextAlive
protected boolean isContextAlive() -
open
- Throws:
NamingException
-
getSecurityRoles
Description copied from interface:SecuritySettingPluginFetch the security role information from the external environment (e.g. file, LDAP, etc.) and return it.- Specified by:
getSecurityRolesin interfaceSecuritySettingPlugin- Returns:
- the Map's key corresponds to the "match" for the security setting and the corresponding value is the set
of
org.apache.activemq.artemis.core.security.Roleobjects defining the appropriate authorization
-
setSecurityRepository
Description copied from interface:SecuritySettingPluginThis method is called by the broker during the start-up process. It's for plugins that might need to modify the security settings during runtime (e.g. LDAP plugin that uses a listener to receive updates, etc.). Any changes made to thisHierarchicalRepositorywill be reflected in the broker.- Specified by:
setSecurityRepositoryin interfaceSecuritySettingPlugin
-
stop
Description copied from interface:SecuritySettingPluginClean up all the associated resources associated with this plugin (e.g. LDAP connections, file handles, etc.)- Specified by:
stopin interfaceSecuritySettingPlugin- Returns:
thisinstance
-
objectAdded
Handler for new policy entries in the directory.- Parameters:
namingEvent- the new entry event that occurred
-
objectRemoved
Handler for removed policy entries in the directory.- Parameters:
namingEvent- the removed entry event that occurred
-
objectRenamed
- Parameters:
namingEvent- the renaming entry event that occurred
-
objectChanged
Handler for changed policy entries in the directory.- Parameters:
namingEvent- the changed entry event that occurred
-
namingExceptionThrown
Handler for exception events from the registry.- Parameters:
namingExceptionEvent- the exception event
-