Package org.jboss.ws.extensions.security.exception

Examples of org.jboss.ws.extensions.security.exception.FailedCheckException


   {
      QName name = target.getName();

      Element element = Util.findElement(message.getDocumentElement(), name);
      if (element == null)
         throw new FailedCheckException("Required QName was not present: " + name);

      String id = Util.getWsuId(element);

      if (id == null)
         throw new FailedCheckException("Required element did not contain a wsu:id.");

      Collection<String> result = new ArrayList<String>(1);
      result.add(id);

      return result;
View Full Code Here


      for (Target target : targets)
      {
          Collection<String> ids = resolveTarget(message, target);
          if (! processedIds.containsAll(ids))
             throw new FailedCheckException("Required elements for encryption and or signing are not all present.");
      }
   }
View Full Code Here

         cipher.init(XMLCipher.DECRYPT_MODE, key);
         cipher.doFinal(element.getOwnerDocument(), element);
      }
      catch (XMLEncryptionException e)
      {
         throw new FailedCheckException(e);
      }
      catch (Exception e)
      {
         throw new WSSecurityException("Could not decrypt element: " + e.getMessage(), e);
      }
View Full Code Here

         {
            this.secretKey = EncryptionOperation.generateSecretKey(alg);
         }
         catch (Exception ex)
         {
            WSSecurityException exception = new FailedCheckException(e);
            exception.setInternal(true);
            throw exception;
         }
      }

      this.document = element.getOwnerDocument();
View Full Code Here

TOP

Related Classes of org.jboss.ws.extensions.security.exception.FailedCheckException

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.