Deleting Credentials by using the Trust Manager API

You can programmatically delete a credential by using the Trust Manager API. When deleting a credential, you specify an alias that corresponds to the credential. Once deleted, a credential cannot be used to perform an operation.

Note: You cannot delete a credential into LiveCycle using web services.

Summary of steps

To delete a credential, perform the following steps:

  1. Include project files.

  2. Create a credential service client.

  3. Perform the delete operation.

Include project files

Include necessary files into your development project. If you are creating a client application using Java, then include the necessary JAR files. The following JAR files must be added to your project’s classpath:

  • adobe-livecycle-client.jar

  • adobe-usermanager-client.jar

  • adobe-truststore-client.jar

  • adobe-utilities.jar (Required if LiveCycle is deployed on JBoss)

  • jbossall-client.jar (Required if LiveCycle is deployed on JBoss)

For information about the location of these JAR files, see Including LiveCycle Java library files.

Create a credential service client

Before you can programmatically delete a credential, create a Data Integration service client. When creating a service client, you define connection settings that are required to invoke a service. For information, see Setting connection properties.

Perform the delete operation

To delete a credential, specify the alias that corresponds to the credential. If you specify an alias that does not exist, an exception is thrown.

Deleting credentials using the Java API

Delete a credential from LiveCycle by using the Trust Manager API (Java):

  1. Include project files

    Include client JAR files, such as adobe-truststore-client.jar, in your Java project’s class path.

  2. Create a credential service client

    • Create a ServiceClientFactory object that contains connection properties.

    • Create a CredentialServiceClient object by using its constructor and passing the ServiceClientFactory object.

  3. Perform the delete operation

    Invoke the CredentialServiceClient object’s deleteCredential method and pass a string value that specifies the alias value.

// Ethnio survey code removed