yawda.controller
Class CPrincipalWrapper

java.lang.Object
  extended byyawda.controller.CPrincipalWrapper
All Implemented Interfaces:
Principal, Serializable

public final class CPrincipalWrapper
extends Object
implements Principal, Serializable

Author:
Quentin Anciaux
See Also:
Serialized Form

Field Summary
static String SESSION_KEY
           
 
Method Summary
 String getName()
           
static CPrincipalWrapper getPrincipal(Principal principal, javax.servlet.http.HttpSession session, javax.servlet.ServletContext context)
           
 String[] getRoles()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Field Detail

SESSION_KEY

public static final String SESSION_KEY
See Also:
Constant Field Values
Method Detail

getPrincipal

public static final CPrincipalWrapper getPrincipal(Principal principal,
                                                   javax.servlet.http.HttpSession session,
                                                   javax.servlet.ServletContext context)

getName

public final String getName()
Specified by:
getName in interface Principal

getRoles

public final String[] getRoles()