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