Examples of SecurityException


Examples of de.suse.swamp.core.util.SecurityException

  
   
   
    public void doEmptyDatacache(String uname) throws StorageException, UnknownElementException, SecurityException {
        if (!SecurityManager.isGroupMember(SecurityManager.getUser(uname), "swampadmins")) {
            throw new SecurityException("Not allowed to truncate data-cache.");
        }
        DataManager.clearCache();
    }
View Full Code Here

Examples of de.suse.swamp.core.util.SecurityException

        DataManager.clearCache();
    }

    public int doGetDatacacheSize(String uname) throws StorageException, UnknownElementException, SecurityException {
        if (!SecurityManager.isGroupMember(SecurityManager.getUser(uname), "swampadmins")) {
            throw new SecurityException("Not allowed to read data-cache.");
        }
        return DatasetCache.getInstance().getCacheSize();
    }
View Full Code Here

Examples of flex.messaging.security.SecurityException

        // If an attempt is made to use a constraint that we do not know about,
        // do not let the authorization succeed
        if (constraints.get(ref) == null)
        {
            // Security constraint {0} is not defined.
            SecurityException se = new SecurityException();
            se.setMessage(NO_SEC_CONSTRAINT, new Object[] {ref});
            throw se;
        }
        return (SecurityConstraint)constraints.get(ref);
    }
View Full Code Here

Examples of it.eng.spagobi.services.security.exceptions.SecurityException

     
      SessionContainer sessionContainer = this.getRequestContainer().getSessionContainer();
      SessionContainer permanentContainer = sessionContainer.getPermanentContainer();
      IEngUserProfile profile = (IEngUserProfile) permanentContainer.getAttribute(IEngUserProfile.ENG_USER_PROFILE);
      if (profile == null) {
        throw new SecurityException("User profile not found in session");
      }
     
      String documentId = (String)request.getAttribute("documentId");
      if (documentId == null)
        throw new Exception("Document id missing!!");
View Full Code Here

Examples of java.lang.SecurityException

      {
        throw new RollbackException(e4.toString());
      }
      catch (org.omg.CORBA.NO_PERMISSION e5)
      {
        throw new SecurityException();
      }
      catch (INVALID_TRANSACTION e6)
      {
        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.invalidtx2"));
View Full Code Here

Examples of java.lang.SecurityException

        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.wrongstatetx"));
      }
      catch (org.omg.CORBA.NO_PERMISSION e2)
      {
        throw new SecurityException();
      }
      catch (INVALID_TRANSACTION e3)
      {
        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.invalidtx2"));
View Full Code Here

Examples of java.lang.SecurityException

      {
        throw new RollbackException(e4.toString());
      }
      catch (org.omg.CORBA.NO_PERMISSION e5)
      {
        throw new SecurityException();
      }
      catch (INVALID_TRANSACTION e6)
      {
        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.invalidtx2"));
View Full Code Here

Examples of java.lang.SecurityException

        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.wrongstatetx"));
      }
      catch (org.omg.CORBA.NO_PERMISSION e2)
      {
        throw new SecurityException();
      }
      catch (INVALID_TRANSACTION e3)
      {
        throw new IllegalStateException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.invalidtx2"));
View Full Code Here

Examples of javax.resource.spi.SecurityException

                        }
                        return null;
                    }
                });
            if (pc == null) {
                throw new SecurityException("No PasswordCredential found");
            } else {
                return pc;
            }
        }
    }
View Full Code Here

Examples of javax.resource.spi.SecurityException

        throws ResourceException {

        PasswordCredential pc =
            Util.getPasswordCredential(mcf, subject, connectionRequestInfo);
        if (!Util.isPasswordCredentialEqual(pc, passCred)) {
            throw new SecurityException("Principal does not match." +
                                        "Reauthentication not supported");
        }
        checkIfDestroyed();
        CciConnection cciCon = new CciConnection(this);
        addCciConnection(cciCon);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.