当前页面:
在线文档首页 >
JBoss Seam 1.1.0 API 英文版文档
UsernamePasswordToken (JBoss Seam API Documentation) - JBoss Seam 1.1.0 API 英文版文档
org.jboss.seam.security
Class UsernamePasswordToken
java.lang.Object
org.jboss.seam.security.Identity
org.jboss.seam.security.UsernamePasswordToken
- All Implemented Interfaces:
- Serializable, Principal
public class UsernamePasswordToken
- extends Identity
- Author:
- Shane Bryzak
- See Also:
- Serialized Form
UsernamePasswordToken
public UsernamePasswordToken(Object principal,
Object credentials)
UsernamePasswordToken
public UsernamePasswordToken(Object principal,
Object credentials,
Role[] roles)
getName
public String getName()
getRoles
public Role[] getRoles()
- Specified by:
getRoles
in class Identity
getCredentials
public Object getCredentials()
- Specified by:
getCredentials
in class Identity
getPrincipal
public Object getPrincipal()
- Specified by:
getPrincipal
in class Identity
toString
public String toString()
- Specified by:
toString
in interface Principal
- Overrides:
toString
in class Object