Uploaded image for project: 'WildFly Elytron'
  1. WildFly Elytron
  2. ELY-1564

In PasswordKeyMapper an exception is logged with a wrong algorithm name.

    XMLWordPrintable

Details

    Description

      In PasswordKeyMapper an exception is logged with the default algorithm name instead of the algorithm used to instantiate PasswordFactory object.

      PasswordKeyMapper.java
              final PasswordFactory passwordFactory;
              try {
                  passwordFactory = PasswordFactory.getInstance(algorithmName, providers);
              } catch (NoSuchAlgorithmException e) {
                  throw log.couldNotObtainPasswordFactoryForAlgorithm(algorithmName, e);
              }
      
      ...
      
              try {
                  Password password = passwordFactory.generatePassword(passwordSpec);
                  if (log.isTraceEnabled()) {
                      log.tracef("Key Mapper: Password credential created using algorithm column value [%s]", algorithmName);
                  }
                  return new PasswordCredential(password);
              } catch (InvalidKeySpecException e) {
                  throw log.invalidPasswordKeySpecificationForAlgorithm(this.defaultAlgorithm, e);
              }
      

      Attachments

        Activity

          People

            rhn-support-ivassile Ilia Vassilev
            rhn-support-ivassile Ilia Vassilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: