public class CreateEcKeyOptions extends CreateKeyOptions
Constructor and Description |
---|
CreateEcKeyOptions(String name)
Creates a
CreateEcKeyOptions with name as name of the EC key. |
Modifier and Type | Method and Description |
---|---|
KeyCurveName |
getCurveName()
Get the curve.
|
Boolean |
isHardwareProtected()
Get the HSM value of the key being created.
|
CreateEcKeyOptions |
setCurveName(KeyCurveName curveName)
Set the curve name.
|
CreateEcKeyOptions |
setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.
|
CreateEcKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
CreateEcKeyOptions |
setExportable(Boolean exportable)
Set a flag that indicates if the private key can be exported.
|
CreateEcKeyOptions |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not.
|
CreateEcKeyOptions |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations.
|
CreateEcKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
CreateEcKeyOptions |
setReleasePolicy(KeyReleasePolicy releasePolicy)
Set the policy rules under which the key can be exported.
|
CreateEcKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getReleasePolicy, getTags, isEnabled, isExportable
public CreateEcKeyOptions(String name)
CreateEcKeyOptions
with name
as name of the EC key.name
- The name of the EC key.public KeyCurveName getCurveName()
public CreateEcKeyOptions setCurveName(KeyCurveName curveName)
curveName
- The curve name to set.CreateEcKeyOptions
object.public Boolean isHardwareProtected()
public CreateEcKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected
- The HSM value to set.CreateEcKeyOptions
object.public CreateEcKeyOptions setKeyOperations(KeyOperation... keyOperations)
setKeyOperations
in class CreateKeyOptions
keyOperations
- The key operations to set.CreateEcKeyOptions
object.public CreateEcKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.setNotBefore
in class CreateKeyOptions
notBefore
- The notBefore UTC time to set.CreateEcKeyOptions
object.public CreateEcKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.setExpiresOn
in class CreateKeyOptions
expiresOn
- The expiry time to set for the key.CreateEcKeyOptions
object.public CreateEcKeyOptions setTags(Map<String,String> tags)
setTags
in class CreateKeyOptions
tags
- The tags to set.CreateEcKeyOptions
object.public CreateEcKeyOptions setEnabled(Boolean enabled)
setEnabled
in class CreateKeyOptions
enabled
- The enabled value to set.CreateEcKeyOptions
object.public CreateEcKeyOptions setExportable(Boolean exportable)
setExportable
in class CreateKeyOptions
exportable
- A flag that indicates if the private key can be exported.CreateEcKeyOptions
object.public CreateEcKeyOptions setReleasePolicy(KeyReleasePolicy releasePolicy)
setReleasePolicy
in class CreateKeyOptions
releasePolicy
- The policy rules to set.CreateEcKeyOptions
object.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.