Skip to content

arienkock/java-sudo-impersonation

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 

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.

About

Concurrent and nestable Java security model that for user impersonation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages