Code samples for the AWS CloudHSM software library for Java - AWS CloudHSM

Code samples for the AWS CloudHSM software library for Java

This topic provides resources and information on Java code samples for Client SDK 5.

Prerequisites

Before running the samples, you must set up your environment:

Code samples

The following code samples show you how to use the AWS CloudHSM JCE provider to perform basic tasks. More code samples are available on GitHub.

[1] In accordance with NIST guidance, this is disallowed for clusters in FIPS mode after 2023. For clusters in non-FIPS mode, it is still allowed after 2023. See FIPS 140 Compliance: 2024 Mechanism Deprecation for details.