Class LegacyLDAPSecuritySettingPlugin

java.lang.Object
org.apache.activemq.artemis.core.server.impl.LegacyLDAPSecuritySettingPlugin
All Implemented Interfaces:
Serializable, SecuritySettingPlugin

public class LegacyLDAPSecuritySettingPlugin extends Object implements SecuritySettingPlugin
See Also:
  • Field Details

  • Constructor Details

    • LegacyLDAPSecuritySettingPlugin

      public LegacyLDAPSecuritySettingPlugin()
  • Method Details

    • init

      Description copied from interface: SecuritySettingPlugin
      Initialize the plugin with the given configuration options. This method is called by the broker when the file-based configuration is read (see org.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:
      init in interface SecuritySettingPlugin
      Parameters:
      options - name/value pairs used to configure the SecuritySettingPlugin instance
      Returns:
      this instance
    • getRoleAttribute

      public String getRoleAttribute()
    • setRoleAttribute

      public SecuritySettingPlugin setRoleAttribute(String roleAttribute)
    • getFilter

      public String getFilter()
    • setFilter

      public LegacyLDAPSecuritySettingPlugin setFilter(String filter)
    • getDestinationBase

      public String getDestinationBase()
    • setDestinationBase

      public LegacyLDAPSecuritySettingPlugin setDestinationBase(String destinationBase)
    • getAuthentication

      public String getAuthentication()
    • setAuthentication

      public LegacyLDAPSecuritySettingPlugin setAuthentication(String authentication)
    • getConnectionPassword

      public String getConnectionPassword()
    • setConnectionPassword

      public LegacyLDAPSecuritySettingPlugin setConnectionPassword(String connectionPassword)
    • getConnectionProtocol

      public String getConnectionProtocol()
    • setConnectionProtocol

      public LegacyLDAPSecuritySettingPlugin setConnectionProtocol(String connectionProtocol)
    • getConnectionURL

      public String getConnectionURL()
    • setConnectionURL

      public LegacyLDAPSecuritySettingPlugin setConnectionURL(String connectionURL)
    • getConnectionUsername

      public String getConnectionUsername()
    • setConnectionUsername

      public LegacyLDAPSecuritySettingPlugin setConnectionUsername(String connectionUsername)
    • getInitialContextFactory

      public String getInitialContextFactory()
    • getAdminPermissionValue

      public String getAdminPermissionValue()
    • setAdminPermissionValue

      public LegacyLDAPSecuritySettingPlugin setAdminPermissionValue(String adminPermissionValue)
    • getReadPermissionValue

      public String getReadPermissionValue()
    • setReadPermissionValue

      public LegacyLDAPSecuritySettingPlugin setReadPermissionValue(String readPermissionValue)
    • getWritePermissionValue

      public String getWritePermissionValue()
    • setWritePermissionValue

      public LegacyLDAPSecuritySettingPlugin setWritePermissionValue(String writePermissionValue)
    • setInitialContextFactory

      public LegacyLDAPSecuritySettingPlugin setInitialContextFactory(String initialContextFactory)
    • isEnableListener

      public boolean isEnableListener()
    • setEnableListener

      public LegacyLDAPSecuritySettingPlugin setEnableListener(boolean enableListener)
    • isMapAdminToManage

      public boolean isMapAdminToManage()
    • setMapAdminToManage

      public LegacyLDAPSecuritySettingPlugin setMapAdminToManage(boolean mapAdminToManage)
    • isAllowQueueAdminOnRead

      public boolean isAllowQueueAdminOnRead()
    • setAllowQueueAdminOnRead

      public LegacyLDAPSecuritySettingPlugin setAllowQueueAdminOnRead(boolean allowQueueAdminOnRead)
    • isContextAlive

      protected boolean isContextAlive()
    • open

      protected void open() throws NamingException
      Throws:
      NamingException
    • getSecurityRoles

      public Map<String,Set<Role>> getSecurityRoles()
      Description copied from interface: SecuritySettingPlugin
      Fetch the security role information from the external environment (e.g. file, LDAP, etc.) and return it.
      Specified by:
      getSecurityRoles in interface SecuritySettingPlugin
      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.Role objects defining the appropriate authorization
    • setSecurityRepository

      public void setSecurityRepository(HierarchicalRepository<Set<Role>> securityRepository)
      Description copied from interface: SecuritySettingPlugin
      This 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 this HierarchicalRepository will be reflected in the broker.
      Specified by:
      setSecurityRepository in interface SecuritySettingPlugin
    • stop

      public SecuritySettingPlugin stop()
      Description copied from interface: SecuritySettingPlugin
      Clean up all the associated resources associated with this plugin (e.g. LDAP connections, file handles, etc.)
      Specified by:
      stop in interface SecuritySettingPlugin
      Returns:
      this instance
    • objectAdded

      public void objectAdded(NamingEvent namingEvent)
      Handler for new policy entries in the directory.
      Parameters:
      namingEvent - the new entry event that occurred
    • objectRemoved

      public void objectRemoved(NamingEvent namingEvent)
      Handler for removed policy entries in the directory.
      Parameters:
      namingEvent - the removed entry event that occurred
    • objectRenamed

      public void objectRenamed(NamingEvent namingEvent)
      Parameters:
      namingEvent - the renaming entry event that occurred
    • objectChanged

      public void objectChanged(NamingEvent namingEvent)
      Handler for changed policy entries in the directory.
      Parameters:
      namingEvent - the changed entry event that occurred
    • namingExceptionThrown

      public void namingExceptionThrown(NamingExceptionEvent namingExceptionEvent)
      Handler for exception events from the registry.
      Parameters:
      namingExceptionEvent - the exception event