A {@code SecurityContextFactory} returns a {@link SecurityContext} instance that retains a clientconnection's {@link Subject} instance.
It should be noted that at the time a {@code SecurityContextFactory} is invoked, a {@link Subject} is alreadyassociated with the client connection. A {@code SecurityContextFactory} is merely responsible for creatinga Shiro-specific {@link org.apache.activemq.security.SecurityContext SecurityContext} instance.
The returned {@code SecurityContext} instance will then be made available to any downstream Broker Filters via{@code connectionContext.}{@link org.apache.activemq.broker.ConnectionContext#getSecurityContext() getSecurityContext()}to ensure it may be used for Shiro-based security checks.
@see org.apache.activemq.shiro.subject.SubjectSecurityContext
@since 5.10.0