Package org.jboss.identity.federation.core.exceptions

Examples of org.jboss.identity.federation.core.exceptions.ProcessingException


      {
         throw new ParsingException(e);
      }
      catch (IOException e)
      {
         throw new ProcessingException(e);
      }  
   }
View Full Code Here


         {
            throw new ConfigurationException(e);
         }
         catch (IOException e)
         {
            throw new ProcessingException(e);
         }
         catch (TransformerFactoryConfigurationError e)
         {
            throw new ConfigurationException(e);
         }
         catch (TransformerException e)
         {
            throw new ProcessingException(e);
         }
         catch (Exception e)
         {
            throw new ProcessingException(e);
         }
      }
      //Lets see how the response looks like
      if(log.isTraceEnabled())
      {
View Full Code Here

      {
         throw new ConfigurationException(e);
      }
      catch (TransformerException e)
      {
         throw new ProcessingException(e);
      }
     
      String urlEncodedResponse = RedirectBindingUtil.deflateBase64URLEncode(responseString);
   
      String urlEncodedRelayState = null;
View Full Code Here

         keyCipher.init(XMLCipher.WRAP_MODE, keyUsedToEncryptSecretKey);
         return keyCipher.encryptKey(document, keyToBeEncrypted);
      }
      catch (XMLEncryptionException e)
      {
        throw new ProcessingException(e);
      }
   }
View Full Code Here

         cipher = XMLCipher.getInstance(encryptionAlgorithm);
         cipher.init(XMLCipher.ENCRYPT_MODE, secretKey);
      }
      catch (XMLEncryptionException e1)
      {
        throw new ProcessingException(e1);
      }

      Document encryptedDoc;
      try
      {
         encryptedDoc = cipher.doFinal(document, documentElement);
      }
      catch (Exception e)
      {
         throw new ProcessingException(e);
      }
     
      // The EncryptedKey element is added
      Element encryptedKeyElement =  cipher.martial(document, encryptedKey);
View Full Code Here

      {
         encryptedDoc = cipher.doFinal(document, document.getDocumentElement());
      }
      catch (Exception e)
      {
         throw new ProcessingException(e);
      }
     
      // The EncryptedKey element is added
      Element encryptedKeyElement =  cipher.martial(document, encryptedKey);
View Full Code Here

         encryptedData = cipher.loadEncryptedData(documentWithEncryptedElement, encDataElement)
         encryptedKey = cipher.loadEncryptedKey(documentWithEncryptedElement, encKeyElement);
      }
      catch (XMLEncryptionException e1)
      {
         throw new ProcessingException(e1);
      }
     
      Document decryptedDoc = null;
     
      if (encryptedData != null && encryptedKey != null)
      {
         try
         {
            String encAlgoURL = encryptedData.getEncryptionMethod().getAlgorithm();
            XMLCipher keyCipher =  XMLCipher.getInstance();
            keyCipher.init(XMLCipher.UNWRAP_MODE, privateKey);
            Key encryptionKey =  keyCipher.decryptKey( encryptedKey, encAlgoURL );
            cipher =  XMLCipher.getInstance()
            cipher.init(XMLCipher.DECRYPT_MODE, encryptionKey);

            decryptedDoc = cipher.doFinal(documentWithEncryptedElement, encDataElement);
         }
         catch (Exception e)
         {
            throw new ProcessingException(e);
         }
      }
     
      Element decryptedRoot = decryptedDoc.getDocumentElement();
      Element dataElement = getNextElementNode(decryptedRoot.getFirstChild());
View Full Code Here

        
         return new Result(dt,null);
      }
      catch (JAXBException e)
      {
         throw new ProcessingException(e);
      }
      catch (IOException e)
      {
         throw new ProcessingException(e);
      }
      catch (ConfigurationException e)
      {
         throw new ProcessingException(e);
      }
   }
View Full Code Here

         {
            throw new ConfigurationException(e);
         }
         catch (IOException e)
         {
            throw new ProcessingException(e);
         }
         catch (TransformerFactoryConfigurationError e)
         {
            throw new ConfigurationException(e);
         }
         catch (TransformerException e)
         {
            throw new ProcessingException(e);
         }
         catch (Exception e)
         {
            throw new ProcessingException(e);
         }
      }
      //Lets see how the response looks like
      if(log.isTraceEnabled())
      {
View Full Code Here

               samlRequest.createLogoutRequest(request.getIssuer().getValue());
            response.setResultingDocument(samlRequest.convert(lot));
         }
         catch (Exception e)
         {
            throw new ProcessingException(e);
         }
      }
View Full Code Here

TOP

Related Classes of org.jboss.identity.federation.core.exceptions.ProcessingException

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.