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

Create REST endpoint for cryptotoken deactivation

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.2.0
    • Component/s: None
    • Labels:

      Description

      Endpoint: /ejbca/ejbca-rest-api/v1/cryptotoken/{cryptotoken_name}/deactivate

      Method type: PUT (without body)

      Responses:
      200 OK (if successful)
      422 Unprocessable Entity (unknown token name)

      Other responses should be handled by the existing ExceptionHandler for REST.

      • Write system tests! In CryptoTokenRestResourceSystemTest

       

      How to test:

      • Using Swagger, try valid and invalid requests and verify that proper response code and error message / success message is returned. Using valid input, make sure the crypto token is actually activated (verify in GUI)
      • Run CryptoTokenRestResourceSystemTest and verify the result
      • Make sure activation fails if the requesting admin lacks role privilege /cryptotoken/deactivate/xx

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              laurik_helmes Lauri Kongas
              Reporter:
              hsunmark Henrik Sunmark
              Verified by:
              Henrik Sunmark
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day, 4 hours Original Estimate - 1 day, 4 hours
                  1d 4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 7 hours, 25 minutes
                  1d 7h 25m