Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Configure the AWS CloudHSMCloudHsmProvider class with a file (Default configuration)

Focus mode
Configure the AWS CloudHSMCloudHsmProvider class with a file (Default configuration) - AWS CloudHSM

The default way to configure the AWS CloudHSM CloudHsmProvider class is with a file.

When you instantiate CloudHsmProvider using default constructor, by default it will look for configuration file in /opt/cloudhsm/etc/cloudhsm-jce.cfg path in Linux. This configuration file can be configured using the configure-jce.

An object created using the default constructor will use the default CloudHSM provider name CloudHSM. The provider name is useful to interact with JCE to let it know which provider to use for various operation. An example to use CloudHSM provider name for Cipher operation is as below:

Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding", "CloudHSM");
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.