public class CloudHsmClusterBuilder
extends java.lang.Object
CloudHsmCluster.| Modifier and Type | Method and Description |
|---|---|
CloudHsmCluster |
build()
Constructs the
CloudHsmCluster with the input provided to the builder. |
CloudHsmClusterBuilder |
withClientCertFilePath(java.lang.String clientCertFilePath)
Sets the client certificate file used to connect with mTLS to a cluster server over E2E.
|
CloudHsmClusterBuilder |
withClientPrivateKeyFilePath(java.lang.String clientPrivateKeyFilePath)
Sets the client private key file used to connect with mTLS to a cluster server over E2E.
|
CloudHsmClusterBuilder |
withClusterType(java.lang.String clusterType)
Sets the type of the cluster which the configuration has been provided for.
|
CloudHsmClusterBuilder |
withClusterUniqueIdentifier(java.lang.String clusterUniqueIdentifier)
Sets the uniqueIdentifier for a provider.
|
CloudHsmClusterBuilder |
withHsmCAFilePath(java.lang.String hsmCAFilePath)
Sets the CA file required to connect to a cluster server over E2E.
|
CloudHsmClusterBuilder |
withOptions(java.lang.Object optionalParameter,
java.lang.Object optionalParameterValue)
Sets an optional parameter.
|
CloudHsmClusterBuilder |
withProxyHostnamesConfig(CloudHsmProxyHostnamesConfig proxyHostnamesConfig)
Sets the proxy hostnames to specify the proxy type and mapping hsm hostnames to proxy
hostnames.
|
CloudHsmClusterBuilder |
withServer(CloudHsmServer server)
Sets the reference to the server configuration (for example, network config).
|
public CloudHsmClusterBuilder withClusterUniqueIdentifier(java.lang.String clusterUniqueIdentifier)
If the uniqueIdentifier is not provided, an internal identifier based on UUID will be generated and used. One example of the generated uniqueIdentifier is "CloudHSM-5f901b70-df55-42d7-9426-416c538e2235".
The generated uniqueIdentifier will be used as the provider name and same identifier string can be used to lookup the provider.
If the uniqueIdentifier is already registered with JCE, exception is thrown.
clusterUniqueIdentifier - The identifier that can uniquely identify the provider.public CloudHsmClusterBuilder withOptions(java.lang.Object optionalParameter, java.lang.Object optionalParameterValue) throws java.security.InvalidParameterException
optionalParameter - A parameter of type OptionalParameters.optionalParameterValue - The value of the optional parameter passed above.java.security.InvalidParameterException - when optional parameter value is not of the expected type.OptionalParameterspublic CloudHsmClusterBuilder withClusterType(java.lang.String clusterType)
clusterType - The type of the cluster.public CloudHsmClusterBuilder withHsmCAFilePath(java.lang.String hsmCAFilePath)
hsmCAFilePath - The HSM CA certificate file path.public CloudHsmClusterBuilder withClientCertFilePath(java.lang.String clientCertFilePath)
clientCertFilePath - The client certificate file path.public CloudHsmClusterBuilder withClientPrivateKeyFilePath(java.lang.String clientPrivateKeyFilePath)
clientPrivateKeyFilePath - The client private key file path.public CloudHsmClusterBuilder withServer(CloudHsmServer server)
server - CloudHSM server.public CloudHsmClusterBuilder withProxyHostnamesConfig(CloudHsmProxyHostnamesConfig proxyHostnamesConfig)
proxyHostnamesConfig - proxy hostnames related configurationpublic CloudHsmCluster build() throws java.security.InvalidParameterException
CloudHsmCluster with the input provided to the builder.java.security.InvalidParameterException - when the value of the provided optional parameter(s) does
not match with the expected type.