cn.dreampie.security
类 Principal<M extends Entity>
java.lang.Object
cn.dreampie.security.Principal<M>
- 所有已实现的接口:
- Serializable
public class Principal<M extends Entity>
- extends Object
- implements Serializable
Date: 1/30/13
Time: 6:30 PM
- 另请参见:
- 序列化表格
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PRINCIPAL_DEF_KEY
public static final String PRINCIPAL_DEF_KEY
- 另请参见:
- 常量字段值
Principal
public Principal(String username,
String password,
Set<String> credentials,
M model)
Principal
public Principal(String username,
String password,
String salt,
Set<String> credentials,
M model)
getUsername
public String getUsername()
getPassword
public String getPassword()
getSalt
public String getSalt()
getCredentials
public Set<String> getCredentials()
hasCredential
public boolean hasCredential(String permission)
getModel
public M getModel()
Copyright © 2015. All rights reserved.