Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java 1.5.6, Java 2.0.6
-
None
Description
The constructor for KeyValue includes the following:
if (pk instanceof java.security.interfaces.DSAPublicKey) { DSAKeyValue dsa = new DSAKeyValue(getDocument(), pk); ... } else if (pk instanceof java.security.interfaces.RSAPublicKey) { RSAKeyValue rsa = new RSAKeyValue(getDocument(), pk); ... }
This means that passing a public key which is not one of those types (e.g., a ECPublicKey) will generate an empty <KeyValue> element. This is not schema-valid.