org.jboss.seam.security
Class UsernamePasswordToken

java.lang.Object
  extended by org.jboss.seam.security.Identity
      extended by org.jboss.seam.security.UsernamePasswordToken
All Implemented Interfaces:
Serializable, Principal

public class UsernamePasswordToken
extends Identity

Author:
Shane Bryzak
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.seam.security.Identity
authenticated, valid
 
Constructor Summary
UsernamePasswordToken(Object principal, Object credentials)
           
UsernamePasswordToken(Object principal, Object credentials, Role[] roles)
           
 
Method Summary
 Object getCredentials()
           
 String getName()
           
 Object getPrincipal()
           
 Role[] getRoles()
           
 String toString()
           
 
Methods inherited from class org.jboss.seam.security.Identity
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,
                             Role[] roles)
Method Detail

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