Connecting to multiple AWS CloudHSM clusters with the JCE provider
This configuration allows a single client instance to communicate to multiple AWS CloudHSM
clusters. Compared to having a single instance only communicate with a single cluster, this
can be a cost-savings feature for some use cases. The
CloudHsmProvider
class is AWS CloudHSM's implementation of Java
Security's Provider class
The following example instantiates this class and adds it to Java Security provider’s list:
if (Security.getProvider(CloudHsmProvider.PROVIDER_NAME) == null) { Security.addProvider(new CloudHsmProvider()); }
CloudHsmProvider
can be configured in two ways:
Configure with file (default configuration)
Configure using code
The following topics describe these configurations, and how to connect to multiple clusters.