Class AuthenticationFilter

All Implemented Interfaces:
Broker, Region, org.apache.activemq.Service

public class AuthenticationFilter extends EnvironmentFilter
The AuthenticationFilter enforces if authentication is required before allowing the broker filter chain to continue.

This implementation performs a connection-level authentication assertion: If the Subject associated with the connection* is not authenticated, and the AuthenticationPolicy requires the Subject to be authenticated, it will attempt to login the Subject automatically. The AuthenticationToken used to login is created by the authenticationTokenFactory, typically by acquiring any credentials associated with the connection.

Once the connection's Subject is authenticated as necessary, the broker filter chain will continue as expected.

*: The upstream SubjectFilter is expected to execute before this one, ensuring a Subject instance is already associated with the connection.

Since:
5.10.0