org.moremotion.security
Class SecurityManager
java.lang.Object
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 $
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityManager
public SecurityManager()
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 objectsecurityDomainName
- 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.