1 package com.atlassian.seraph.auth;
2
3 import java.security.Principal;
4
5 /**
6 * Allow the user to be retrieved at any time throughout the application. Typically implementations
7 * of this class will use a Thread Local variable to store state.
8 * <p>
9 * If the client has access to the request, it is preferrable to get this information from the
10 * {@link Authenticator} instead.
11 */
12 public interface AuthenticationContext
13 {
14 public Principal getUser();
15
16 public void setUser(Principal user);
17
18 public void clearUser();
19 }