public static class UserContext.Factory extends Object
Constructor and Description |
---|
Factory(UserService userService) |
Modifier and Type | Method and Description |
---|---|
UserContext |
create()
Create a UserContext from the currently accessible Shiro Subject available to the calling code depending on runtime environment.
|
UserContext |
create(org.apache.shiro.subject.Subject subject) |
@Inject public Factory(UserService userService)
public UserContext create() throws UserContextMissingException
UserContext.runAs(String username, Callable)
UserContextMissingException
public UserContext create(org.apache.shiro.subject.Subject subject)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.