Summary of steps
To import a credential into AEM Forms, perform the following steps:
- Include project files.
- Create a credential service client.
- Reference the credential.
- Perform the import 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. If you are using web services, then make sure that you include the proxy 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 AEM Forms is deployed on JBoss)
- jbossall-client.jar (Required if AEM Forms is deployed on JBoss)
For information about the location of these JAR files, see Including AEM Forms Java library files.
Create a credential service client
Before you can programmatically import a credential into AEM Forms, create a credential service client. For information, see Setting connection properties.
Reference the credential
Reference a credential that you want to import into AEM Forms. The quick start associated with this section references a P12 file in the file system.
Perform the import operation
After you reference the credential, import the credential into AEM Forms. If the credential is not successfully imported, an exception is thrown. When importing a credential, you specify an alias for the credential.
See also
Import credentials using the Java API
Including AEM Forms Java library files
Import credentials using the Java API
Import a credential into AEM Forms 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
- Create a
ServiceClientFactory
object that contains connection properties. - Create a
CredentialServiceClient
object by using its constructor and passing theServiceClientFactory
object.
- Create a
-
Reference the credential
- Create a
java.io.FileInputStream
object by using its constructor. Pass a string value that specifies the location of the credential. - Create a
com.adobe.idp.Document
object that stores the credential by using thecom.adobe.idp.Document
constructor. Pass thejava.io.FileInputStream
object that contains the credential to the constructor.
- Create a
-
Perform the import operation
-
Create a string array that holds one element. Assign the value
truststore.usage.type.sign
to the element. -
Invoke the
CredentialServiceClient
object’simportCredential
method and pass the following values:- A string value that specifies the alias value for the credential.
- The
com.adobe.idp.Document
instance that stores the credential. - A string value that specifies the password that is associated with the credential.
- The string array that contains the usage value. For example, you can specify this value
truststore.usage.type.sign
. To import a Reader Extension credential, specifytruststore.usage.type.lcre
.
-
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.
Summary of steps
To delete a credential, perform the following steps:
- Include project files.
- Create a credential service client.
- 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 AEM Forms is deployed on JBoss)
- jbossall-client.jar (Required if AEM Forms is deployed on JBoss)
For information about the location of these JAR files, see Including AEM Forms 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.
See also
Import credentials using the Java API
Deleting credentials using the Java API
Delete a credential from AEM Forms 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
- Create a
ServiceClientFactory
object that contains connection properties. - Create a
CredentialServiceClient
object by using its constructor and passing theServiceClientFactory
object.
- Create a
-
Perform the delete operation
Invoke the
CredentialServiceClient
object’sdeleteCredential
method and pass a string value that specifies the alias value.
Experience Manager
Espressos & Experience Manager: AEM Forms
Espressos & Experience Manager
Thursday, Mar 6, 7:00 PM UTC
Join Adobe's AEM product team as they highlight AEM Forms' latest innovations, including: the new Gen AI Assistant, Unified Composition with AEM Sites, and new ways to deploy forms through conversations.
RegisterThe Future of Forms: Experience Success Across the Enrollment Journey
Adobe Experience Manager Forms is the conversion engine to fully capitalize on engagement and personalization efforts, yet it’s frequently...
Wed, Mar 19, 2:00 PM PDT (9:00 PM UTC)
The True Cost of a Failed Implementation
A failed implementation isn’t just an inconvenience — it costs real revenue. Poor execution and misaligned tools disrupt pipelines,...
Wed, Mar 19, 2:00 PM PDT (9:00 PM UTC)
Connect with Experience League at Summit!
Get front-row access to top sessions, hands-on activities, and networking—wherever you are!
Learn more