public class CreateEcKeyOptions extends CreateKeyOptions
Constructor and Description |
---|
CreateEcKeyOptions(String name)
Creates a EcKeyCreateOptions 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.
|
CreateEcKeyOptions |
setEnabled(Boolean enabled)
Set the enabled value.
|
CreateEcKeyOptions |
setExpiresOn(OffsetDateTime expiresOn)
Set the
expires UTC time. |
CreateEcKeyOptions |
setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of hsm type or not.
|
CreateEcKeyOptions |
setKeyOperations(KeyOperation... keyOperations)
Set the key operations value.
|
CreateEcKeyOptions |
setNotBefore(OffsetDateTime notBefore)
Set the
notBefore UTC time. |
CreateEcKeyOptions |
setTags(Map<String,String> tags)
Set the tags to be associated with the key.
|
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getTags, isEnabled
public CreateEcKeyOptions(String name)
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 to setpublic CreateEcKeyOptions setKeyOperations(KeyOperation... keyOperations)
setKeyOperations
in class CreateKeyOptions
keyOperations
- The key operations value to setpublic CreateEcKeyOptions setNotBefore(OffsetDateTime notBefore)
notBefore
UTC time.setNotBefore
in class CreateKeyOptions
notBefore
- The notBefore UTC time to setpublic CreateEcKeyOptions setExpiresOn(OffsetDateTime expiresOn)
expires
UTC time.setExpiresOn
in class CreateKeyOptions
expiresOn
- The expiry time to set for the key.public CreateEcKeyOptions setTags(Map<String,String> tags)
setTags
in class CreateKeyOptions
tags
- The tags to setpublic CreateEcKeyOptions setEnabled(Boolean enabled)
setEnabled
in class CreateKeyOptions
enabled
- The enabled value to setpublic CreateEcKeyOptions setHardwareProtected(Boolean hardwareProtected)
hardwareProtected
- The hsm value to set.public Boolean isHardwareProtected()
Copyright © 2020 Microsoft Corporation. All rights reserved.