CreateEcKeyOptions Class
- java.
lang. Object - com.
azure. security. keyvault. keys. models. CreateKeyOptions - com.
azure. security. keyvault. keys. models. CreateEcKeyOptions
- com.
- com.
public class CreateEcKeyOptions
extends CreateKeyOptions
Represents the configurable options to create an EC key.
Constructor Summary
Constructor | Description |
---|---|
CreateEcKeyOptions(String name) |
Creates a CreateEcKeyOptions with |
Method Summary
Methods inherited from CreateKeyOptions
Methods inherited from java.lang.Object
Constructor Details
CreateEcKeyOptions
public CreateEcKeyOptions(String name)
Creates a CreateEcKeyOptions with name
as name of the EC key.
Parameters:
Method Details
getCurveName
public KeyCurveName getCurveName()
Get the curve.
Returns:
isHardwareProtected
public Boolean isHardwareProtected()
Get the HSM value of the key being created.
Returns:
setCurveName
public CreateEcKeyOptions setCurveName(KeyCurveName curveName)
Set the curve name.
Parameters:
Returns:
setEnabled
public CreateEcKeyOptions setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
Overrides:
CreateEcKeyOptions.setEnabled(Boolean enabled)Parameters:
Returns:
setExpiresOn
public CreateEcKeyOptions setExpiresOn(OffsetDateTime expiresOn)
Set the expires UTC time.
Overrides:
CreateEcKeyOptions.setExpiresOn(OffsetDateTime expiresOn)Parameters:
Returns:
setExportable
public CreateEcKeyOptions setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
Overrides:
CreateEcKeyOptions.setExportable(Boolean exportable)Parameters:
Returns:
setHardwareProtected
public CreateEcKeyOptions setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not.
Parameters:
Returns:
setKeyOperations
public CreateEcKeyOptions setKeyOperations(KeyOperation[] keyOperations)
Set the key operations.
Overrides:
CreateEcKeyOptions.setKeyOperations(KeyOperation[] keyOperations)Parameters:
Returns:
setNotBefore
public CreateEcKeyOptions setNotBefore(OffsetDateTime notBefore)
Set the notBefore UTC time.
Overrides:
CreateEcKeyOptions.setNotBefore(OffsetDateTime notBefore)Parameters:
Returns:
setReleasePolicy
public CreateEcKeyOptions setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
Overrides:
CreateEcKeyOptions.setReleasePolicy(KeyReleasePolicy releasePolicy)Parameters:
Returns:
setTags
public CreateEcKeyOptions setTags(Map
Set the tags to be associated with the key.
Overrides:
CreateEcKeyOptions.setTags(Map<String,String> tags)Parameters:
Returns:
Applies to
Azure SDK for Java