KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > identity > security > AuthenticatedUser


1 package org.jbpm.identity.security;
2
3 import org.jbpm.identity.*;
4
5 public class AuthenticatedUser {
6   
7   static ThreadLocal JavaDoc authenticatedUser = new ThreadLocal JavaDoc();
8
9   static void setAuthenticatedUser(User user){
10     authenticatedUser.set(user);
11   }
12   
13   public User getAuthenticatedUser() {
14     return (User) authenticatedUser.get();
15   }
16 }
17
Popular Tags