public static class CloudHsmKeyAttributesMap.Builder
extends java.lang.Object
CloudHsmKeyAttributesMap.
Method chaining is supported.
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CloudHsmKeyAttributesMap |
build()
Returns an instance of
CloudHsmKeyAttributesMap created from the fields set on
this builder. |
CloudHsmKeyAttributesMap.Builder |
put(CloudHsmKeyAttributes keyAttribute,
java.lang.Object value)
Associates the specified value with the specified key attribute.
|
CloudHsmKeyAttributesMap.Builder |
withExtractable(boolean value)
A convenience method for setting
CloudHsmKeyAttributes.CKA_EXTRACTABLE. |
CloudHsmKeyAttributesMap.Builder |
withLabel(java.lang.String value)
A convenience method for setting
CloudHsmKeyAttributes.CKA_LABEL. |
CloudHsmKeyAttributesMap.Builder |
withToken(boolean value)
A convenience method for setting
CloudHsmKeyAttributes.CKA_TOKEN. |
public CloudHsmKeyAttributesMap build()
CloudHsmKeyAttributesMap created from the fields set on
this builder.CloudHsmKeyAttributesMap populated with the key attributes
and values provided to the builder's methods.public CloudHsmKeyAttributesMap.Builder put(CloudHsmKeyAttributes keyAttribute, java.lang.Object value)
If the internal map previously contained a mapping for the key attribute, the old value is replaced.
keyAttribute - Key attribute with which the specified value is to be associated.value - Value to be associated with the specified key attribute.Builder instance, for method chaining.java.security.InvalidParameterException - If either keyAttribute or
value are null.public CloudHsmKeyAttributesMap.Builder withLabel(java.lang.String value)
CloudHsmKeyAttributes.CKA_LABEL.
If the internal map previously contained a mapping for
CloudHsmKeyAttributes.CKA_LABEL, the old value is replaced.
value - The value to store with CloudHsmKeyAttributes.CKA_LABEL; must not be
null.Builder instance, for method chaining.java.security.InvalidParameterException - If the specified value is null.put(com.amazonaws.cloudhsm.CloudHsmKeyAttributes, java.lang.Object)public CloudHsmKeyAttributesMap.Builder withExtractable(boolean value)
CloudHsmKeyAttributes.CKA_EXTRACTABLE.
If the internal map previously contained a mapping for
CloudHsmKeyAttributes.CKA_EXTRACTABLE, the old value is replaced.
value - The value to store with CloudHsmKeyAttributes.CKA_EXTRACTABLE.Builder instance, for method chaining.put(com.amazonaws.cloudhsm.CloudHsmKeyAttributes, java.lang.Object)public CloudHsmKeyAttributesMap.Builder withToken(boolean value)
CloudHsmKeyAttributes.CKA_TOKEN.
If the internal map previously contained a mapping for
CloudHsmKeyAttributes.CKA_TOKEN, the old value is replaced.
NOTE: This key attribute is often called a different name in CloudHSM JCE
method signatures, persistent.
value - The value to store with CloudHsmKeyAttributes.CKA_TOKEN.Builder instance, for method chaining.put(com.amazonaws.cloudhsm.CloudHsmKeyAttributes, java.lang.Object)