fr.ifremer.allegro
Class PrincipalStore

java.lang.Object
  extended by fr.ifremer.allegro.PrincipalStore

public final class PrincipalStore
extends java.lang.Object

Stores the currently logged in Principal. The principal is passed from another tier of the application (i.e. the web application).


Constructor Summary
PrincipalStore()
           
 
Method Summary
static java.security.Principal get()
          Get the user principal for the currently executing thread.
static void set(java.security.Principal principal)
          Set the principal for the currently executing thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrincipalStore

public PrincipalStore()
Method Detail

get

public static java.security.Principal get()
Get the user principal for the currently executing thread.

Returns:
the current principal.

set

public static void set(java.security.Principal principal)
Set the principal for the currently executing thread.

Parameters:
name - the user principal


Copyright © 2008-2010 IFREMER. All Rights Reserved.