cn.dreampie.config
类 MyAuthenticateService
java.lang.Object
cn.dreampie.security.AuthenticateService
cn.dreampie.config.MyAuthenticateService
- 所有已实现的接口:
- Serializable
public class MyAuthenticateService
- extends AuthenticateService
Created by ice on 15-1-7.
- 另请参见:
- 序列化表格
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MyAuthenticateService
public MyAuthenticateService()
getPrincipal
public Principal getPrincipal(String username)
- 查询用户信息 这儿new一个用户对象来模拟
- 指定者:
- 类
AuthenticateService 中的 getPrincipal
- 参数:
username - 登录的用户名
- 返回:
- 用户权限对象
getAllCredentials
public Set<Credential> getAllCredentials()
- 加载全部的权限信息
- 指定者:
- 类
AuthenticateService 中的 getAllCredentials
- 返回:
- 权限集合
Copyright © 2015. All rights reserved.