Package org.apache.activemq.shiro
Interface SecurityContextFactory
-
- All Known Implementing Classes:
DefaultSecurityContextFactory
public interface SecurityContextFactoryASecurityContextFactoryreturns aSecurityContextinstance that retains a client connection'sSubjectinstance. It should be noted that at the time aSecurityContextFactoryis invoked, aSubjectis already associated with the client connection. ASecurityContextFactoryis merely responsible for creating a Shiro-specificSecurityContextinstance. The returnedSecurityContextinstance 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 SecurityContextcreateSecurityContext(SubjectConnectionReference ref)Creates a newSecurityContextretaining the client connection'sSubjectinstance.
-
-
-
Method Detail
-
createSecurityContext
SecurityContext createSecurityContext(SubjectConnectionReference ref)
Creates a newSecurityContextretaining the client connection'sSubjectinstance. It should be noted that at the time aSecurityContextFactoryis invoked, aSubjectis already associated with the client connection. ASecurityContextFactoryis merely responsible for creating a Shiro-specificSecurityContextinstance. The returnedSecurityContextinstance 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
SecurityContextretaining the client connection'sSubjectinstance. - See Also:
SubjectSecurityContext
-
-