Search in sources :

Example 11 with PortalSecurityException

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));
    }
}
Also used : PortalSecurityException(org.apereo.portal.security.PortalSecurityException)

Aggregations

PortalSecurityException (org.apereo.portal.security.PortalSecurityException)11 IPerson (org.apereo.portal.security.IPerson)5 HttpSession (javax.servlet.http.HttpSession)4 ISecurityContext (org.apereo.portal.security.ISecurityContext)3 Enumeration (java.util.Enumeration)2 AuthorizationException (org.apereo.portal.AuthorizationException)2 ILocalAccountDao (org.apereo.portal.persondir.ILocalAccountDao)2 ILocalAccountPerson (org.apereo.portal.persondir.ILocalAccountPerson)2 IOException (java.io.IOException)1 Iterator (java.util.Iterator)1 Map (java.util.Map)1 Properties (java.util.Properties)1 AuthenticationException (javax.naming.AuthenticationException)1 NamingEnumeration (javax.naming.NamingEnumeration)1 NamingException (javax.naming.NamingException)1 Attributes (javax.naming.directory.Attributes)1 DirContext (javax.naming.directory.DirContext)1 SearchControls (javax.naming.directory.SearchControls)1 SearchResult (javax.naming.directory.SearchResult)1 IUserProfile (org.apereo.portal.IUserProfile)1