Skip to content
Concurrent and nestable Java security model that for user impersonation
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
README.md
pom.xml

README.md

Java sudo-like user impersonation

This small example uses copious amounts of anonymous inner classes to create 'sandboxes' for java applications. Each Runnable/Callable<T> will get the user specified for them in the surrounding sudo invocation when calling AppSec.currentUser. Nesting calls to AppSec.sudo is supported as well as spawning new threads from within a sudo closure, which then inherits the parent's security scope. See the unit test for an example.

You can’t perform that action at this time.