org.squashtest.tm.security
Class UserContextHolder

java.lang.Object
  extended by org.squashtest.tm.security.UserContextHolder

public final class UserContextHolder
extends Object

Author:
Gregory Fouquet

Method Summary
static org.springframework.security.core.Authentication getPrincipal()
          Returns the principal registered by the security manager for the current thread.
static String getUsername()
          Returns the username registered by the security manager for the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPrincipal

public static org.springframework.security.core.Authentication getPrincipal()
Returns the principal registered by the security manager for the current thread.

Returns:

getUsername

public static String getUsername()
Returns the username registered by the security manager for the current thread.

Returns:


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.