Uploaded image for project: 'WSS4J'
  1. WSS4J
  2. WSS-306

It would be nice to have WSSecEncryptedKey generate secret keys by means of KeyGenerator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.3
    • WSS4J Core
    • None

    Description

      WSS4J generates secret key itself instead of using http://download.oracle.com/javase/6/docs/api/javax/crypto/KeyGenerator.html#generateKey%28%29

      protected byte[] generateEphemeralKey() throws WSSecurityException {
      try

      { return WSSecurityUtil.generateNonce(this.keySize / 8); }

      catch (Exception e)

      { throw new WSSecurityException("Error in creating the ephemeral key", e); }

      }

      Attachments

        1. WSS-306.patch
          3 kB
          Anli Shundi

        Activity

          People

            coheigea Colm O hEigeartaigh
            szhemzhitsky Sergey Zhemzhitsky
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: