KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > presentation > Authenticator


1
2 package org.roller.presentation;
3
4 import javax.servlet.http.HttpServletRequest JavaDoc;
5
6 /** Interface used by Roller to check user authentication and role */
7 public interface Authenticator
8 {
9 /** Return the name of the request's authenticated user, or null if none */
10 public String JavaDoc getAuthenticatedUserName( HttpServletRequest JavaDoc req );
11
12 /** Return true if authenticated user is in the specified role */
13 public boolean isAuthenticatedUserInRole( HttpServletRequest JavaDoc req, String JavaDoc role);
14 }
15
16
Popular Tags