|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.security.SecurityUtil
Helper class to manage the principal object.
Constructor Summary | |
private |
SecurityUtil()
Constructor |
Method Summary | |
static Principal |
getPrincipal(javax.servlet.http.HttpServletRequest request)
Returns the users principal object with the user permissions. |
static Principal |
getPrincipal(javax.servlet.http.HttpSession session)
Returns the users principal object with the user permissions. |
static Principal |
getPrincipal(javax.servlet.ServletRequest request)
Returns the users principal object with the user permissions. |
static void |
registerPrincipal(javax.servlet.http.HttpSession session,
Principal principal)
Registers a principal object for the user in the users session. |
static void |
unregisterPrincipal(javax.servlet.http.HttpSession session)
Unregisters the current principal object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private SecurityUtil()
Method Detail |
public static Principal getPrincipal(javax.servlet.ServletRequest request)
request
- The ServletRequest
public static Principal getPrincipal(javax.servlet.http.HttpServletRequest request)
request
- The HttpServletRequest
public static Principal getPrincipal(javax.servlet.http.HttpSession session)
session
- The HttpSession
public static void registerPrincipal(javax.servlet.http.HttpSession session, Principal principal)
session
- The HttpSessionprincipal
- The principal object with the users permissionspublic static void unregisterPrincipal(javax.servlet.http.HttpSession session)
session
- The HttpSession
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |