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
DefaultSecurityContextFactoryimplementation that createsSubjectSecurityContextinstances, allowing the connection'sSubjectand the ShiroEnvironmentto 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 SecurityContextcreateSecurityContext(SubjectConnectionReference conn)Returns a newSubjectSecurityContextinstance, allowing the connection'sSubjectand the ShiroEnvironmentto be available to downstream security broker filters.
-
-
-
Method Detail
-
createSecurityContext
public SecurityContext createSecurityContext(SubjectConnectionReference conn)
Returns a newSubjectSecurityContextinstance, allowing the connection'sSubjectand the ShiroEnvironmentto be available to downstream security broker filters.- Specified by:
createSecurityContextin interfaceSecurityContextFactory- Parameters:
conn- the subject's connection- Returns:
- a new
SubjectSecurityContextinstance, allowing the connection'sSubjectand the ShiroEnvironmentto be available to downstream security broker filters. - See Also:
SubjectSecurityContext
-
-