atg.security
Class SecurityContext

java.lang.Object
  extended by atg.security.SecurityConfiguration
      extended by atg.security.SecurityContext

public class SecurityContext
extends SecurityConfiguration

This object is used to specify the context in which an access control request is being made. This supplies not only the security configuration information appropriate for the security domain, but also provides a reference to the object itself.


Field Summary
static java.lang.String CLASS_VERSION
           
 
Constructor Summary
SecurityContext(SecurityConfiguration pConfig, AccessRight[] pRights, java.util.Map pRightsMap, java.lang.Object pObject)
          Creates a new security context out of a security domain's configuration, replacing the access rights with specified access rights.
SecurityContext(SecurityConfiguration pConfig, java.lang.Object pObject)
          Creates a new security context out of a security domain's configuration and the secured object that is the subject of the access control request.
SecurityContext(SecurityPolicy pPolicy, UserAuthority pUserAuthority, AccessRight[] pRights, java.util.Map pRightsMap, java.lang.Object pObject)
          Creates a new security context.
 
Method Summary
 java.lang.Object getObject()
          Returns the object that is the subject of the access control request, if any.
 
Methods inherited from class atg.security.SecurityConfiguration
getAccessRights, getAccessRightsMap, getSecurityPolicy, getUserAuthority, setAccessRights, setAccessRightsMap, setSecurityPolicy, setUserAuthority
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Constructor Detail

SecurityContext

public SecurityContext(SecurityConfiguration pConfig,
                       java.lang.Object pObject)
Creates a new security context out of a security domain's configuration and the secured object that is the subject of the access control request.


SecurityContext

public SecurityContext(SecurityConfiguration pConfig,
                       AccessRight[] pRights,
                       java.util.Map pRightsMap,
                       java.lang.Object pObject)
Creates a new security context out of a security domain's configuration, replacing the access rights with specified access rights. This is usually used for creating a sub-context for a different class of item in the security domain.


SecurityContext

public SecurityContext(SecurityPolicy pPolicy,
                       UserAuthority pUserAuthority,
                       AccessRight[] pRights,
                       java.util.Map pRightsMap,
                       java.lang.Object pObject)
Creates a new security context.

Method Detail

getObject

public java.lang.Object getObject()
Returns the object that is the subject of the access control request, if any. This can be used to build contextual security policies.