KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > atlassian > seraph > auth > AuthenticationContext


1 package com.atlassian.seraph.auth;
2
3 import java.security.Principal JavaDoc;
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 JavaDoc getUser();
15
16     public void setUser(Principal JavaDoc user);
17
18     public void clearUser();
19 }
20
Popular Tags