Class CreateEcKeyOptions
- java.lang.Object
-
- com.azure.security.keyvault.keys.models.CreateKeyOptions
-
- com.azure.security.keyvault.keys.models.CreateEcKeyOptions
-
public class CreateEcKeyOptions extends CreateKeyOptions
Represents the configurable options to create an EC key.
-
-
Constructor Summary
Constructors Constructor Description CreateEcKeyOptions(String name)Creates aCreateEcKeyOptionswithnameas name of the EC key.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyCurveNamegetCurveName()Get the curve.BooleanisHardwareProtected()Get the HSM value of the key being created.CreateEcKeyOptionssetCurveName(KeyCurveName curveName)Set the curve name.CreateEcKeyOptionssetEnabled(Boolean enabled)Set a value that indicates if the key is enabled.CreateEcKeyOptionssetExpiresOn(OffsetDateTime expiresOn)Set theexpiresUTC time.CreateEcKeyOptionssetHardwareProtected(Boolean hardwareProtected)Set whether the key being created is of HSM type or not.CreateEcKeyOptionssetKeyOperations(KeyOperation... keyOperations)Set the key operations.CreateEcKeyOptionssetNotBefore(OffsetDateTime notBefore)Set thenotBeforeUTC time.CreateEcKeyOptionssetTags(Map<String,String> tags)Set the tags to be associated with the key.-
Methods inherited from class com.azure.security.keyvault.keys.models.CreateKeyOptions
getExpiresOn, getKeyOperations, getKeyType, getName, getNotBefore, getTags, isEnabled
-
-
-
-
Constructor Detail
-
CreateEcKeyOptions
public CreateEcKeyOptions(String name)
Creates aCreateEcKeyOptionswithnameas name of the EC key.- Parameters:
name- The name of the EC key.
-
-
Method Detail
-
getCurveName
public KeyCurveName getCurveName()
Get the curve.- Returns:
- The curve name.
-
setCurveName
public CreateEcKeyOptions setCurveName(KeyCurveName curveName)
Set the curve name.- Parameters:
curveName- The curve name to set.- Returns:
- The
CreateEcKeyOptionsobject.
-
isHardwareProtected
public Boolean isHardwareProtected()
Get the HSM value of the key being created.- Returns:
- The HSM value.
-
setHardwareProtected
public CreateEcKeyOptions setHardwareProtected(Boolean hardwareProtected)
Set whether the key being created is of HSM type or not.- Parameters:
hardwareProtected- The HSM value to set.- Returns:
- The
CreateEcKeyOptionsobject.
-
setKeyOperations
public CreateEcKeyOptions setKeyOperations(KeyOperation... keyOperations)
Set the key operations.- Overrides:
setKeyOperationsin classCreateKeyOptions- Parameters:
keyOperations- The key operations to set.- Returns:
- The
CreateEcKeyOptionsobject.
-
setNotBefore
public CreateEcKeyOptions setNotBefore(OffsetDateTime notBefore)
Set thenotBeforeUTC time.- Overrides:
setNotBeforein classCreateKeyOptions- Parameters:
notBefore- The notBefore UTC time to set.- Returns:
- The
CreateEcKeyOptionsobject.
-
setExpiresOn
public CreateEcKeyOptions setExpiresOn(OffsetDateTime expiresOn)
Set theexpiresUTC time.- Overrides:
setExpiresOnin classCreateKeyOptions- Parameters:
expiresOn- The expiry time to set for the key.- Returns:
- The
CreateEcKeyOptionsobject.
-
setTags
public CreateEcKeyOptions setTags(Map<String,String> tags)
Set the tags to be associated with the key.- Overrides:
setTagsin classCreateKeyOptions- Parameters:
tags- The tags to set.- Returns:
- The
CreateEcKeyOptionsobject.
-
setEnabled
public CreateEcKeyOptions setEnabled(Boolean enabled)
Set a value that indicates if the key is enabled.- Overrides:
setEnabledin classCreateKeyOptions- Parameters:
enabled- The enabled value to set.- Returns:
- The
CreateEcKeyOptionsobject.
-
-