Class PrincipalStore

  • Direct Known Subclasses:
    PrincipalStore

    public class PrincipalStore
    extends Object
    Stores the currently logged in Principal. The principal is passed from another tier of the application (i.e. the web application).
    • Constructor Detail

      • PrincipalStore

        public PrincipalStore()
    • Method Detail

      • get

        public static Principal get()
        Get the user principal for the currently executing thread.
        Returns:
        the current principal.
      • set

        public static void set​(Principal principal)
        Set the principal for the currently executing thread.
        Parameters:
        name - the user principal