Package java.lang

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


        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

      {
        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

        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

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

        throw new InactiveTransactionException(
            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 InactiveTransactionException(
            jtaLogger.loggerI18N.getString("com.arjuna.ats.internal.jta.transaction.jts.invalidtx2"));
View Full Code Here

                }
                throw rollbackException;
      }
      catch (org.omg.CORBA.NO_PERMISSION e5)
      {
        throw new SecurityException();
      }
      catch (INVALID_TRANSACTION e6)
      {
          /*
           * In JTS/OTS we can indicate that something was terminated by another thread.
View Full Code Here

        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

     */
    protected void checkPINOperation(int pinID, int unblockPinID,
                                     int action) {

        if (pins == null) {
            throw new SecurityException();
        }

        boolean found = false;
        for (int i = 0; i < pins.length; i++) {
            found |= (pins[i].id == pinID);
        }
        attr1 = parent.getPINAttributes(pinID);

        if (! found || attr1 == null || ! attr1.check(action)) {
            throw new SecurityException();
        }

        if (action == CMD_UNBLOCK) {
            attr2 = parent.getPINAttributes(unblockPinID);
            if (attr2 == null || ! attr2.isUnblockingPIN()) {
                throw new SecurityException();
            }
        } else {
            attr2 = null;
        }
    }
View Full Code Here

        PINEntryDialog dialog;
        try {
            dialog = new PINEntryDialog(securityToken, action, attr1,
                                        attr2);
        } catch (InterruptedException e) {
            throw new SecurityException("Interrupted");
        }

        dialog.waitForAnswer();

        return dialog.getPINs();
View Full Code Here

TOP

Related Classes of java.lang.SecurityException

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.