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

Java library generates schema invalid KeyValue for EC credentials

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Java 1.5.6, Java 2.0.6
    • Java 2.0.7
    • Java
    • 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

            coheigea Colm O hEigeartaigh
            iay Ian Young
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: