Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-5316

Jaas Encryption should be easier to use

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.2.0.M1
    • Fix Version/s: 4.2.0.M1
    • Component/s: karaf
    • Labels:
      None

      Description

      Currently the EncryptionSupport is difficult to use. Each module needs to check the presence of EncryptionSupport and an Encryption module and also check the prefixes and suffixes.

      I propose to have one method exposed by the EncryptionSupport:
      String encrypt(String plain)

      This method checks if plain is already encrypted and encrypts with the selected Encryption. It also handles the !enabled or no suitable EncryptionSupport case.

      Besides that I propose a public static EncryptionSupport noEncryptionSupport() that can be called instead of setting the encryptionSupport=null in modules. This allows to leave out null checks.

        Attachments

          Activity

            People

            • Assignee:
              chris@die-schneider.net Christian Schneider
              Reporter:
              chris@die-schneider.net Christian Schneider
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: