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/25 14:25:03 UTC

svn commit: r1745493 - /santuario/xml-security-java/trunk/src/main/java/org/apache/xml/security/keys/content/KeyValue.java

Author: coheigea
Date: Wed May 25 14:25:03 2016
New Revision: 1745493

URL: http://svn.apache.org/viewvc?rev=1745493&view=rev
Log:
[SANTUARIO-443] - Java library generates schema invalid KeyValue for EC credentials

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=1745493&r1=1745492&r2=1745493&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 Wed May 25 14:25:03 2016
@@ -104,6 +104,8 @@ public class KeyValue extends SignatureE
 
             appendSelf(rsa);
             addReturnToSelf();
+        } else {
+            throw new RuntimeException("PublicKey type " + pk + " is not supported");
         }
     }