Uploaded image for project: 'Santuario'
  1. Santuario
  2. SANTUARIO-443

Java library generates schema invalid KeyValue for EC credentials

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Java 1.5.6, Java 2.0.6
    • Fix Version/s: Java 2.0.7
    • Component/s: Java
    • Labels:
      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.

        Attachments

          Activity

            People

            • Assignee:
              coheigea Colm O hEigeartaigh
              Reporter:
              iay Ian Young

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment