authenticator.java
来自「这个weblogging 设计得比较精巧」· Java 代码 · 共 16 行
JAVA
16 行
package org.roller.presentation;import javax.servlet.http.HttpServletRequest;/** Interface used by Roller to check user authentication and role */public interface Authenticator{/** Return the name of the request's authenticated user, or null if none */public String getAuthenticatedUserName( HttpServletRequest req );/** Return true if authenticated user is in the specified role */public boolean isAuthenticatedUserInRole( HttpServletRequest req, String role);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?