use of org.apereo.portal.security.PortalSecurityException in project uPortal by Jasig.
the class ChainingSecurityContext method addSubContext.
public synchronized void addSubContext(String name, ISecurityContext ctx) throws PortalSecurityException {
// Make sure the subcontext does not already exist in the chain
if (doesSubContextExist(name)) {
PortalSecurityException ep = new PortalSecurityException("Subcontext already exists: " + name);
log.error("Subcontext already exists:" + name, ep);
throw (ep);
} else {
mySubContexts.add(new Entry(name, ctx));
}
}
Aggregations