org.opencrx.kernel.layer.model
Class SecurityContext
java.lang.Object
org.opencrx.kernel.layer.model.SecurityContext
public class SecurityContext
- extends Object
A security context manages the subjects of one subject segment.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityContext
public SecurityContext(AccessControl_1 plugin,
org.openmdx.base.naming.Path realmIdentity)
throws ServiceException
- Throws:
ServiceException
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.