com.bstek.dorado.console.authentication
public class DefaultAuthenticationManager extends java.lang.Object implements AuthenticationManager, org.springframework.beans.factory.InitializingBean
web服务启动时如果用户配置了控制台了用户名、密码 则按照用户所配置信息进行分配权限, 如果管理员没有在配置文件配置用户名密码或者配置错误 则自动创建一个名为administrator密码位随机值的用户 并打印在控制台管理员可以通过查看控制台日志获得权限分配信息
Constructor and Description |
---|
DefaultAuthenticationManager() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
boolean |
authenticate(java.lang.String name,
java.lang.String password)
验证用户名密码是否正确
|
boolean |
isAuthenticated(javax.servlet.http.HttpServletRequest request)
获得认证状态
|
void |
setConsoleStartedMessagesOutputter(ConsoleStartedMessagesOutputter consoleStartedMessagesOutputter) |
public void setConsoleStartedMessagesOutputter(ConsoleStartedMessagesOutputter consoleStartedMessagesOutputter)
public boolean authenticate(java.lang.String name, java.lang.String password)
AuthenticationManager
authenticate
in interface AuthenticationManager
public boolean isAuthenticated(javax.servlet.http.HttpServletRequest request)
AuthenticationManager
isAuthenticated
in interface AuthenticationManager
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
Copyright © 2001-2011 www.BSTEK.com All Rights Reserved.