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 principals of one realm.


Field Summary
protected  AccessControl_1 plugin
           
protected  Path realmIdentity
           
 
Constructor Summary
SecurityContext(AccessControl_1 plugin, Path realmIdentity)
           
 
Method Summary
protected  Set<String> getMemberships(org.opencrx.kernel.layer.model.SecurityContext.CachedPrincipal principal, Path userIdentity, short accessLevel, boolean useExtendedAccessLevelBasic)
           
protected  Path getPrimaryGroup(org.opencrx.kernel.layer.model.SecurityContext.CachedPrincipal principal)
           
protected  org.opencrx.kernel.layer.model.SecurityContext.CachedPrincipal getPrincipal(String principalName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

plugin

protected final AccessControl_1 plugin

realmIdentity

protected final Path realmIdentity
Constructor Detail

SecurityContext

public SecurityContext(AccessControl_1 plugin,
                       Path realmIdentity)
                throws ServiceException
Throws:
ServiceException
Method Detail

getPrincipal

protected org.opencrx.kernel.layer.model.SecurityContext.CachedPrincipal getPrincipal(String principalName)
                                                                               throws ServiceException
Throws:
ServiceException

getPrimaryGroup

protected Path getPrimaryGroup(org.opencrx.kernel.layer.model.SecurityContext.CachedPrincipal principal)
                        throws ServiceException
Throws:
ServiceException

getMemberships

protected Set<String> getMemberships(org.opencrx.kernel.layer.model.SecurityContext.CachedPrincipal principal,
                                     Path userIdentity,
                                     short accessLevel,
                                     boolean useExtendedAccessLevelBasic)


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