站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > 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
  extended by org.jboss.seam.security.Authentication
      extended by org.jboss.seam.security.UsernamePasswordToken
All Implemented Interfaces:
Serializable, Principal

public class UsernamePasswordToken
extends Authentication

Author:
Shane Bryzak
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.seam.security.Authentication
authenticated, valid
 
Constructor Summary
UsernamePasswordToken(Object principal, Object credentials)
           
UsernamePasswordToken(Object principal, Object credentials, String[] roles)
           
 
Method Summary
 Object getCredentials()
           
 String getName()
           
 Object getPrincipal()
           
 String[] getRoles()
           
 String toString()
           
 
Methods inherited from class org.jboss.seam.security.Authentication
instance, invalidate, isAuthenticated, isUserInRole, isValid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode
 

Constructor Detail

UsernamePasswordToken

public UsernamePasswordToken(Object principal,
                             Object credentials)

UsernamePasswordToken

public UsernamePasswordToken(Object principal,
                             Object credentials,
                             String[] roles)
Method Detail

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