Examples of SecurityException


Examples of javax.resource.spi.SecurityException

      HornetQRACredential credential = HornetQRACredential.getCredential(mcf, subject, cxRequestInfo);

      // Null users are allowed!
      if (userName != null && !userName.equals(credential.getUserName()))
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (userName == null && credential.getUserName() != null)
      {
         throw new SecurityException("Password credentials not the same, reauthentication not allowed");
      }

      if (isDestroyed.get())
      {
         throw new IllegalStateException("The managed connection is already destroyed");
View Full Code Here

Examples of open.dolphin.exception.SecurityException

    public String checkIdAsComposite(SessionContext ctx, String checkId) {
       
        // テストする ID の施設ID 部を得る
        int index = checkId.indexOf(COMPOSITE_KEY_MAKER);
        if (index < 0) {
            throw new SecurityException(checkId);
        }
        String facilityId = checkId.substring(0, index);
       
        // Caller の施設ID部を得る
        String callerId = ctx.getCallerPrincipal().getName();
        index = callerId.indexOf(COMPOSITE_KEY_MAKER);
        String callersFacilityId = callerId.substring(0, index);
       
        // 両者が一致しているかどうかを調べる
        if (!facilityId.equals(callersFacilityId)) {
            throw new SecurityException(checkId);
        }
       
        // 複合キーと見なせる
        return checkId;
    }
View Full Code Here

Examples of org.apache.abdera.security.SecurityException

    SignatureOptions options)
      throws SecurityException {
    try {
      return (T) _sign(entry, options);
    } catch (Exception e) {
      throw new SecurityException(e);
    }
  }
View Full Code Here

Examples of org.apache.abdera.security.SecurityException

    SignatureOptions options) throws SecurityException {
      if (!isSigned(entry)) return false;
      try {
        return _verify(entry,options);
      } catch (Exception e) {
        throw new SecurityException(e);
      }
  }
View Full Code Here

Examples of org.apache.abdera.security.SecurityException

          encdata.setKeyInfo(keyInfo);
        }
        dom = xmlCipher.doFinal(dom, dom.getDocumentElement(), false);
        return domToFom(dom, options);
      } catch (Exception e) {
        throw new SecurityException(e);
      }
  }
View Full Code Here

Examples of org.apache.abdera.security.SecurityException

        xmlCipher.init(XMLCipher.DECRYPT_MODE, dek);
        xmlCipher.setKEK(kek);
        dom = xmlCipher.doFinal(dom, element);
        return domToFom(dom, options);
      } catch (Exception e) {
        throw new SecurityException(e);
      }
  }
View Full Code Here

Examples of org.apache.abdera.security.SecurityException

    SignatureOptions options)
      throws SecurityException {
    try {
      return (T) _sign(entry, options);
    } catch (Exception e) {
      throw new SecurityException(e);
    }
  }
View Full Code Here

Examples of org.apache.airavata.core.gfac.exception.SecurityException

                    gssCredentails = this.proxyRenewer.renewProxy();
                }
            }
            return gssCredentails;
        } catch (Exception e) {
            throw new SecurityException(e.getMessage(), e);
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.security.SecurityException

  public User getUser(String username) throws SecurityException
  {
      User user = (User)getPrincipal(username);
      if (null == user)
      {
          throw new SecurityException(SecurityException.PRINCIPAL_DOES_NOT_EXIST.createScoped(JetspeedPrincipalType.USER, username));
      }
      return user;
  }
View Full Code Here

Examples of org.apache.wicket.security.strategies.SecurityException

   */
  public static String alias(Component component)
  {
    // might be useful in wicket core itself
    if (component == null)
      throw new SecurityException("Specified component is null");
    Page page = null;
    try
    {
      page = component.getPage();
    }
    catch (IllegalStateException e)
    {
      throw new SecurityException("Unable to create alias for component: " + component, e);
    }
    String alias = alias(page.getClass());
    String relative = component.getPageRelativePath();
    if (relative == null || "".equals(relative))
      return alias;
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.