Package org.jasig.portal.security

Examples of org.jasig.portal.security.PortalSecurityException


    if (this.myOpaqueCredentials.credentialstring != null){
       for (i = 0; i < this.myOpaqueCredentials.credentialstring.length; i++)
         this.myOpaqueCredentials.credentialstring[i] = 0;
       myOpaqueCredentials.credentialstring = null;
    }
    if (error && !this.isauth) throw new PortalSecurityException("One of the security subcontexts threw an exception");
    return;
  }
View Full Code Here


      if (entry.getKey() != null && entry.getKey().equals(name))
      {
        return(entry.getCtx());
      }
    }
    PortalSecurityException ep = new PortalSecurityException("No such subcontext: " + name);
    if (log.isDebugEnabled())
        log.debug("No such subcontext as " + name, ep);
    return(null);
  }
View Full Code Here

  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
    {
View Full Code Here

    } finally {
      try {
        if (secprops != null)
          secprops.close();
      } catch (IOException ioe) {
        print(new PortalSecurityException(ioe.getMessage()).toString());
      }
  }
}
View Full Code Here

        else {
            if (log.isInfoEnabled())
                log.info( "No such user: " + this.myPrincipal.UID);
        }
      } catch (Exception e) {
        PortalSecurityException ep = new PortalSecurityException("SQL Database Error");
        log.error(e,e);
        throw  (ep);
      }
    }
    else {
View Full Code Here

                final int newUID = this.userIdentityStore.getPortalUID(person, autocreate);
                person.setID(newUID);
            }
            catch (final AuthorizationException ae) {
                log.error("Exception retrieving ID", ae);
                throw new PortalSecurityException("Authentication Service: Exception retrieving UID");
            }
        }

        //Publish a login event for the person
        this.portalEventFactory.publishLoginEvent(request, this, person);
View Full Code Here

            // Retrieve the person object that is associated with the request
            person = this.personManager.getPerson(request);
        }
        catch (Exception e) {
            logger.error("Exception while retrieving IPerson!", e);
            throw new PortalSecurityException("Could not retrieve IPerson", e);
        }
       
        if (person == null) {
            throw new PortalSecurityException("PersonManager returned null person for this request.  With no user, there's no UserInstance.  Is PersonManager misconfigured?  RDBMS access misconfigured?");
        }

        final HttpSession session = request.getSession();
        if (session == null) {
            throw new IllegalStateException("HttpServletRequest.getSession() returned a null session for request: " + request);
View Full Code Here

TOP

Related Classes of org.jasig.portal.security.PortalSecurityException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.