Package org.apache.activemq.shiro
Interface SecurityContextFactory
-
- All Known Implementing Classes:
DefaultSecurityContextFactory
public interface SecurityContextFactory
ASecurityContextFactory
returns aSecurityContext
instance that retains a client connection'sSubject
instance. It should be noted that at the time aSecurityContextFactory
is invoked, aSubject
is already associated with the client connection. ASecurityContextFactory
is merely responsible for creating a Shiro-specificSecurityContext
instance. The returnedSecurityContext
instance will then be made available to any downstream Broker Filters viaconnectionContext.
getSecurityContext()
to ensure it may be used for Shiro-based security checks.- Since:
- 5.10.0
- See Also:
SubjectSecurityContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SecurityContext
createSecurityContext(SubjectConnectionReference ref)
Creates a newSecurityContext
retaining the client connection'sSubject
instance.
-
-
-
Method Detail
-
createSecurityContext
SecurityContext createSecurityContext(SubjectConnectionReference ref)
Creates a newSecurityContext
retaining the client connection'sSubject
instance. It should be noted that at the time aSecurityContextFactory
is invoked, aSubject
is already associated with the client connection. ASecurityContextFactory
is merely responsible for creating a Shiro-specificSecurityContext
instance. The returnedSecurityContext
instance will then be made available to any downstream Broker Filters viaconnectionContext.
getSecurityContext()
to ensure it may be used for Shiro-based security checks.- Parameters:
ref
- the client's connection and subject- Returns:
- a new
SecurityContext
retaining the client connection'sSubject
instance. - See Also:
SubjectSecurityContext
-
-