com.cc.framework.security
Class SecurityUtil

java.lang.Object
  extended bycom.cc.framework.security.SecurityUtil

public abstract class SecurityUtil
extends java.lang.Object

Helper class to manage the principal object.

Since:
1.0
Version:
$Revision: 1.18 $
Author:
Harald Schulz

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

SecurityUtil

private SecurityUtil()
Constructor

Method Detail

getPrincipal

public static Principal getPrincipal(javax.servlet.ServletRequest request)
Returns the users principal object with the user permissions.

Parameters:
request - The ServletRequest
Returns:
Principal

getPrincipal

public static Principal getPrincipal(javax.servlet.http.HttpServletRequest request)
Returns the users principal object with the user permissions.

Parameters:
request - The HttpServletRequest
Returns:
Principal

getPrincipal

public static Principal getPrincipal(javax.servlet.http.HttpSession session)
Returns the users principal object with the user permissions.

Parameters:
session - The HttpSession
Returns:
Principal

registerPrincipal

public static void registerPrincipal(javax.servlet.http.HttpSession session,
                                     Principal principal)
Registers a principal object for the user in the users session.

Parameters:
session - The HttpSession
principal - The principal object with the users permissions

unregisterPrincipal

public static void unregisterPrincipal(javax.servlet.http.HttpSession session)
Unregisters the current principal object

Parameters:
session - The HttpSession


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.