Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-6367

Add a constant for key purpose 0, defaultKey

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 6.11.0
    • Component/s: None
    • Labels:
      None

      Description

      Currently we have in the code integer constants for all key purposes, except defautlKey. This has resulted in hard coding of "catoken.getAliasFromPurpose(0)", which is hard to troubleshoot when you get an error about key purpose 0, and there is no trace of 0 in the regular constants.

      Add CATokenConstants.CAKEYPURPOSE_DEFAULT=0.

        Attachments

          Activity

            People

            • Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tomas Tomas Gustavsson
              Verified by:
              Mike Agrenius Kushner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: