org.opencrx.kernel.layer.model
Class SecurityContext

java.lang.Object
  extended by org.opencrx.kernel.layer.model.SecurityContext

public class SecurityContext
extends Object

A security context manages the subjects of one subject segment.


Nested Class Summary
static class SecurityContext.CachedPrincipal
           
 
Constructor Summary
SecurityContext(AccessControl_1 plugin, org.openmdx.base.naming.Path realmIdentity)
           
 
Method Summary
protected  Set<String> getMemberships(SecurityContext.CachedPrincipal principal, org.openmdx.base.naming.Path userIdentity, short accessLevel, boolean useExtendedAccessLevelBasic)
           
protected  org.openmdx.base.naming.Path getPrimaryGroup(SecurityContext.CachedPrincipal principal)
           
protected  SecurityContext.CachedPrincipal getPrincipal(String principalName)
           
protected  Set<String> getSubgroups(String qualifiedPrincipalName)
          Return set of qualified names of subgroups of specified group subject.
protected  Set<String> getSupergroups(String qualifiedPrincipalName)
          Return set of qualified names of subgroups of specified group subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityContext

public SecurityContext(AccessControl_1 plugin,
                       org.openmdx.base.naming.Path realmIdentity)
                throws ServiceException
Throws:
ServiceException
Method Detail

getPrincipal

protected SecurityContext.CachedPrincipal getPrincipal(String principalName)
                                                throws ServiceException
Throws:
ServiceException

getPrimaryGroup

protected org.openmdx.base.naming.Path getPrimaryGroup(SecurityContext.CachedPrincipal principal)
                                                throws ServiceException
Throws:
ServiceException

getSubgroups

protected Set<String> getSubgroups(String qualifiedPrincipalName)
                            throws ServiceException
Return set of qualified names of subgroups of specified group subject.

Throws:
ServiceException

getSupergroups

protected Set<String> getSupergroups(String qualifiedPrincipalName)
                              throws ServiceException
Return set of qualified names of subgroups of specified group subject.

Throws:
ServiceException

getMemberships

protected Set<String> getMemberships(SecurityContext.CachedPrincipal principal,
                                     org.openmdx.base.naming.Path userIdentity,
                                     short accessLevel,
                                     boolean useExtendedAccessLevelBasic)
                              throws ServiceException
Throws:
ServiceException


This software is published under the BSD license. Copyright © 2003-2010, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.