1 2 package org.roller.presentation; 3 4 import javax.servlet.http.HttpServletRequest; 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 getAuthenticatedUserName( HttpServletRequest req ); 11 12 /** Return true if authenticated user is in the specified role */ 13 public boolean isAuthenticatedUserInRole( HttpServletRequest req, String role); 14 } 15 16