Package org.graylog.security
Class UserContext.Factory
java.lang.Object
org.graylog.security.UserContext.Factory
- Enclosing class:
- UserContext
-
Constructor Details
-
Method Details
-
create
Create a UserContext from the currently accessible Shiro Subject available to the calling code depending on runtime environment. This should only be called from within an existing Shiro context. If a UserContext is needed from an environment where there is no existing context, the code can be run using:UserContext.runAs(String username, Callable)
- Returns:
- a user context reflecting the currently executing user.
- Throws:
UserContextMissingException
-
create
-