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

另请参见:
序列化表格

字段摘要
static String PRINCIPAL_DEF_KEY
           
 
构造方法摘要
Principal(String username, String password, Set<String> credentials, M model)
           
Principal(String username, String password, String salt, Set<String> credentials, M model)
           
 
方法摘要
 Set<String> getCredentials()
           
 M getModel()
           
 String getPassword()
           
 String getSalt()
           
 String getUsername()
           
 boolean hasCredential(String permission)
           
 
从类 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.