org.moremotion.security
Class SecurityManager

java.lang.Object
  extended by org.moremotion.security.SecurityManager

public class SecurityManager
extends java.lang.Object

This class is responsible for providing a security context to the caller. It loads the specified security broker class (if not yet loaded) and associates with the provided context together with the security domain.

Version:
$Id: SecurityManager.java 115 2008-04-08 11:56:01Z erkan $

Constructor Summary
SecurityManager()
           
 
Method Summary
static boolean checkAccessAuthority(MoreMotionRequest request, AccessControlDefinition acd)
           
static boolean checkAccessAuthority(MoreMotionRequest request, AccessControlDefinition acd, CurrentPage currpage)
           
static boolean checkAccessAuthority(MoreMotionRequest request, java.lang.String acdStr, CurrentPage currpage)
           
static SecurityContext getSecurityContext(MoreMotionRequest request, java.lang.String securityDomainName)
          Returns a security context associated with the specified Access Control Definition object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityManager

public SecurityManager()
Method Detail

getSecurityContext

public static SecurityContext getSecurityContext(MoreMotionRequest request,
                                                 java.lang.String securityDomainName)
                                          throws SecurityContextException
Returns a security context associated with the specified Access Control Definition object.

Parameters:
request - An MoreMotionRequest object
securityDomainName - The name of the securityDomain configuration element in the MoreMotion configuration
Returns:
The Security Context built
Throws:
SecurityContextException - if context cannot be built

checkAccessAuthority

public static boolean checkAccessAuthority(MoreMotionRequest request,
                                           java.lang.String acdStr,
                                           CurrentPage currpage)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

checkAccessAuthority

public static boolean checkAccessAuthority(MoreMotionRequest request,
                                           AccessControlDefinition acd)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

checkAccessAuthority

public static boolean checkAccessAuthority(MoreMotionRequest request,
                                           AccessControlDefinition acd,
                                           CurrentPage currpage)
                                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2002-2008 MOR YAZILIM. All Rights Reserved.