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.
注意: You cannot delete a credential into LiveCycle using web services.
Summary of stepsTo delete a credential, perform the following steps:
Include project files.
Create a credential service client.
Perform the delete operation.
Include project filesInclude 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 clientBefore 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 operationTo 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 APIDelete a credential from LiveCycle by using the
Trust Manager API (Java):
Include project files
Include client JAR files,
such as adobe-truststore-client.jar, in your Java project’s class
path.
Create a credential service client
Perform the delete operation
Invoke the CredentialServiceClient object’s deleteCredential method
and pass a string value that specifies the alias value.
|
|
|