You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by co...@apache.org on 2016/05/26 09:05:13 UTC
svn commit: r1745583 -
/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/keys/content/KeyValue.java
Author: coheigea
Date: Thu May 26 09:05:13 2016
New Revision: 1745583
URL: http://svn.apache.org/viewvc?rev=1745583&view=rev
Log:
Some changes following feedback from Marc
Modified:
santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/keys/content/KeyValue.java
Modified: santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/keys/content/KeyValue.java
URL: http://svn.apache.org/viewvc/santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/keys/content/KeyValue.java?rev=1745583&r1=1745582&r2=1745583&view=diff
==============================================================================
--- santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/keys/content/KeyValue.java (original)
+++ santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/keys/content/KeyValue.java Thu May 26 09:05:13 2016
@@ -105,7 +105,9 @@ public class KeyValue extends SignatureE
appendSelf(rsa);
addReturnToSelf();
} else {
- throw new RuntimeException("PublicKey type " + pk + " is not supported");
+ String error = "The given PublicKey type " + pk + " is not supported. Only DSAPublicKey and "
+ + "RSAPublicKey types are currently supported";
+ throw new IllegalArgumentException(error);
}
}