Author: beve
Date: 2009-11-09 13:52:07 -0500 (Mon, 09 Nov 2009)
New Revision: 921
Modified:
identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/wstrust/SamlCredential.java
Log:
Work for
https://jira.jboss.org/jira/browse/JBID-214 "SamlCredential:
assertionToElement should throw ProcessingException"
Modified:
identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/wstrust/SamlCredential.java
===================================================================
---
identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/wstrust/SamlCredential.java 2009-11-09
18:02:04 UTC (rev 920)
+++
identity-federation/trunk/jboss-identity-fed-core/src/main/java/org/jboss/identity/federation/core/wstrust/SamlCredential.java 2009-11-09
18:52:07 UTC (rev 921)
@@ -34,7 +34,6 @@
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;
-import
org.jboss.identity.federation.core.wstrust.exceptions.SamlCredentialParseException;
import org.jboss.identity.federation.core.exceptions.ConfigurationException;
import org.jboss.identity.federation.core.exceptions.ParsingException;
import org.jboss.identity.federation.core.exceptions.ProcessingException;
@@ -78,7 +77,7 @@
return assertion;
}
- public Element getAssertionAsElement() throws SamlCredentialParseException
+ public Element getAssertionAsElement() throws ProcessingException
{
return SamlCredential.assertionToElement(assertion);
}
@@ -110,7 +109,7 @@
return "SamlCredential[" + assertion + "]";
}
- public static Element assertionToElement(final String assertion) throws
SamlCredentialParseException
+ public static Element assertionToElement(final String assertion) throws
ProcessingException
{
try
{
@@ -119,16 +118,12 @@
}
catch (final ConfigurationException e)
{
- throw new SamlCredentialParseException(e);
+ throw new ProcessingException(e);
}
catch (final ParsingException e)
{
- throw new SamlCredentialParseException(e);
+ throw new ProcessingException(e);
}
- catch (final ProcessingException e)
- {
- throw new SamlCredentialParseException(e);
- }
}
public static String assertionToString(final Element assertion)