Previous Topic: Fetching ArcotID PKI Key Bag ElementsNext Topic: Setting Unsigned Attributes


Deleting ArcotID PKI Key Bag Elements

To delete elements of the ArcotID PKI key bag, you need to implement the deleteElements() method in the ArcotIDKBMIssuance interface.

  1. Get the unique identifier of the element that you want to delete from the key bag.
  2. (Optional) If you are implementing a plug-in, then invoke the setAdditionalInput() method in the AdditionalInput class to fill the AdditionalInput.

    This class provides the additional information that is set as a name-value pair. See "Preparing Additional Input" for more information.

  3. Invoke the deleteElements() method of the ArcotIDKBMIssuance interface to delete elements of the ArcotID PKI key bag.

    This method returns an instance of the TransactionDetails interface, which specifies the transaction ID, message, response code, and reason code.

Handling Errors

Exceptions are returned for any errors that occurred while executing any of the Issuance API methods. The com.arcot.webfort.issuance.api.exception and com.arcot.webfort.common.api.exception packages contain these exceptions. See "Issuance Exceptions" and "Common Exceptions" for more information on exception classes.

Note that if no exception is thrown, then processing was successful and the return object can be referenced for processing results. The lack of an error does not necessarily mean that the request was successful.