Package org.apache.activemq.shiro
Class DefaultSecurityContextFactory
- java.lang.Object
-
- org.apache.activemq.shiro.DefaultSecurityContextFactory
-
- All Implemented Interfaces:
SecurityContextFactory
public class DefaultSecurityContextFactory extends Object implements SecurityContextFactory
DefaultSecurityContextFactory
implementation that createsSubjectSecurityContext
instances, allowing the connection'sSubject
and the ShiroEnvironment
to be available to downstream security broker filters.- Since:
- 5.10.0
-
-
Constructor Summary
Constructors Constructor Description DefaultSecurityContextFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityContext
createSecurityContext(SubjectConnectionReference conn)
Returns a newSubjectSecurityContext
instance, allowing the connection'sSubject
and the ShiroEnvironment
to be available to downstream security broker filters.
-
-
-
Method Detail
-
createSecurityContext
public SecurityContext createSecurityContext(SubjectConnectionReference conn)
Returns a newSubjectSecurityContext
instance, allowing the connection'sSubject
and the ShiroEnvironment
to be available to downstream security broker filters.- Specified by:
createSecurityContext
in interfaceSecurityContextFactory
- Parameters:
conn
- the subject's connection- Returns:
- a new
SubjectSecurityContext
instance, allowing the connection'sSubject
and the ShiroEnvironment
to be available to downstream security broker filters. - See Also:
SubjectSecurityContext
-
-