public interface SecurityContextFactory
SecurityContextFactory returns a SecurityContext instance that retains a client
connection's Subject instance.
It should be noted that at the time a SecurityContextFactory is invoked, a Subject is already
associated with the client connection. A SecurityContextFactory is merely responsible for creating
a Shiro-specific SecurityContext instance.
The returned SecurityContext instance will then be made available to any downstream Broker Filters via
connectionContext.getSecurityContext()
to ensure it may be used for Shiro-based security checks.SubjectSecurityContext| Modifier and Type | Method and Description |
|---|---|
SecurityContext |
createSecurityContext(SubjectConnectionReference ref)
Creates a new
SecurityContext retaining the client connection's Subject instance. |
SecurityContext createSecurityContext(SubjectConnectionReference ref)
SecurityContext retaining the client connection's Subject instance.
It should be noted that at the time a SecurityContextFactory is invoked, a Subject is already
associated with the client connection. A SecurityContextFactory is merely responsible for creating
a Shiro-specific SecurityContext instance.
The returned SecurityContext instance will then be made available to any downstream Broker Filters via
connectionContext.getSecurityContext()
to ensure it may be used for Shiro-based security checks.ref - the client's connection and subjectSecurityContext retaining the client connection's Subject instance.SubjectSecurityContextCopyright © 2005–2016 FuseSource, Corp.. All rights reserved.